CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

Test Manager "ExecuteExternalCommand"
https://forum.codesys.com/viewtopic.php?f=18&t=5521
Page 1 of 1

Author:  labview [ Wed Dec 04, 2013 8:47 am ]
Post subject:  Test Manager "ExecuteExternalCommand"

Hi,

I am trying to run Python script using Test Manager's "ExecuteExternalCommand" and I have an error message stated as,

"The system can not fine the file specified"

Basically,

What I want to do is,

1. Calling Python script i.e. DCSWITCH from a specified directory with an argument i.e. "SET{SWITCH1|MUXA|BANK1|CH101|CLOSE}".
- python C:\SCP\SCP\34970A\DCSWITCH.py "SET{SWITCH1|MUXA|BANK1|CH101|CLOSE}"

Hence,

there is no issue when calling using command prompt.

I have attached a screenshot.

Please advice.

Author:  M.Schaber [ Wed Dec 18, 2013 12:28 pm ]
Post subject:  Re: Test Manager "ExecuteExternalCommand"

Hi,

Did you try to pass absolute pathes for both the python.exe and the script?

Author:  labview [ Thu Dec 19, 2013 6:42 pm ]
Post subject:  Re: Test Manager "ExecuteExternalCommand"

M.Schaber wrote:
Hi,

Did you try to pass absolute pathes for both the python.exe and the script?


Hi Marcus,

I have solved this issue :)

Walter.

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/