help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dos command issue


From: siko1056
Subject: Re: dos command issue
Date: Mon, 6 Nov 2017 09:15:08 -0700 (MST)

Wolking, Sebastian wrote
> Hello everyone,
> 
> I have a problem with a script - programed in MatLab - which is organizing
> a co-simulation between two programs.
> The programs were started in MatLab with the dos(...) command.
> Using the same code now in Octave, there is an error occurring in that
> line.
> 1st part: Starting a prompt of the  program 2nd part: Used Python script,
> 3rd part: File of the program to open 4th part: Simulation case
> 
> dos("C:\Program Files (x86)\AVL\bin\aws_cmd"
> "D:\SG_EHDT_Simulation\T100E\3600rpm\step_1\excite\Test.py" "D:\
> SG_EHDT_Simulation\T100E\3600rpm\step_1\excite\EHD_T.ex"
> "JBT_IME.D_30_B_30" hidden)
> 
> Octave gives back:
> Error opening Python script
> D:\SG_EHDT_Simulation\T100E\3600rpm\step_1\excite\Test.py
> 
> I also tried to start the program out of the Windows prompt. Same error.
> For me, it seems to be a problem with the Python script, so I installed
> Anaconda and hoped it would work. I there is still the same problem. Could
> it be a problem with variables, which need to be set?
> 
> Could someone help me? Thank you for your time.
> 
> Best regards!
> Sebastian

Dear Sebastian,

This is a lot you are trying to do, and I don't know how much is related to
Octave.  Let me summarize if I understand you correctly:

1. You have got a program called "C:\Program Files (x86)\AVL\bin\aws_cmd"
(probably an EXE file) that can take three arguments:
1.1 The first argument of "aws_cmd.exe" is a python script called
"D:\SG_EHDT_Simulation\T100E\3600rpm\step_1\excite\Test.py"
1.2 The second argument of "aws_cmd.exe" is a (input? data-)file "D:\
SG_EHDT_Simulation\T100E\3600rpm\step_1\excite\EHD_T.ex"
1.3 The third argument of "aws_cmd.exe" is a (output? data-)file
"JBT_IME.D_30_B_30" (so what is "hidden" in your case? An Octave variable,
what is its content?)

2. You say invoking the following command vom "cmd.exe" (command prompt)
does not work either:

  C:\Program Files (x86)\AVL\bin\aws_cmd.exe
"D:\SG_EHDT_Simulation\T100E\3600rpm\step_1\excite\Test.py" "D:\
SG_EHDT_Simulation\T100E\3600rpm\step_1\excite\EHD_T.ex" "JBT_IME.D_30_B_30"


If 2. does not work, and you don't know how to call "aws_cmd.exe" from your
Windows command prompt, I think there is no hope Octave will fix this issue
of invoking your program "aws_cmd.exe" correctly.

HTH,
Kai



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]