Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Start program from py script

#1
Hi All,

我们试着start a program in the tree from a python script wich is triggerd externaly.
External trigger is working ok.
But the command to start a program is not working.
Any idea how to code that in there?

Thanks.
#2
What do you mean by the command to start a program is not working?

You should be able to call RunProgram and the program will start (simulation):
Code:
program.RunProgram()

Also, if you want to run the program directly on the real robot using the run on robot option you can do:
Code:
program.setRunType(PROGRAM_RUN_ON_ROBOT)
program.RunProgram()
#3
Hi Albert,

Thanks it works!.

Rick




Users browsing this thread:
1 Guest(s)