Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to add Pause instruction to GUI program from Python
#1
Hey, I'm trying to add a Pause instruction to a program in the RDK GUI using Python.

for example, in python I can run the following line and an empty program will appear in the RDK GUI Tree
Code:
prog = RDK.AddProgram('NewProg')


How can I use Python to add a Pause command to NewProg so that it appears under NewProg with the hour glass icon as if I had added the Pause using the RDK GUI?
#2
prog.Pause(1000) will add a pause of 1 second.

More info here: https://robodk.com/doc/en/PythonAPI/robo...Item.Pause
Find useful information about RoboDK and its features by visiting our Online Documentation and by watching tutorials on our YouTube Channel.
  




Users browsing this thread:
1 Guest(s)