Some background:
From what I have reviewed, there are following options to run the python scripts in ctrlX CORE device.
- First write the python script by using the IDE app and then execute the program by using python runtime app.
- Write the code on any host computer and then upload it via "Manage app data" option.
- Create custom app and install it in ctrlX CORE.
Moreover, if we take option 1, then it also has two options, 1) run the program for temporary time via green button, & 2) write the code in "script engine" in case we want to run the program continuously.
Â
What I am trying to do?
In my case, I am using the Textual IDE to write and python runtime to run scripts. I am currently trying to create a test program in "script engine" that can run continuously, in case of failure, and at the power ON of ctrlX CORE device. Following is the screenshot of test program I am trying to run.
Â
When I run the test code by selecting the "script engine" option, it's giving some errors as shown in the Logbook screenshot below.Â
Â
Questions:
- Is there something I am missing?
- Configuring the python script to run at the power ON of ctrlX is confusing. Can someone please mention some steps?
Â
Versions:
IDE = 1.12.7
Python Runtime = 1.12.4
Automation Core = 1.12.8
Â
Any help will be appreciated, thanks.