Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
“Pause” and “Restart” instruction using Python script
#1
Dear team,

My team member would like to know how to implement the instruction “Pause” and  “Restart” using Python script.
He means, is the instruction showing attached photo possible to implement through Python as well?
If so, please guide us how to do it.

Best Regards,
#2
Hi Hiroe,

There is no image attached.

Jeremy
#3
Sorry about that, but the attachment is just a toolbar icon.
My team member would like to instruct pause/restart  through Python.


Attached Files
.xlsx   image.xlsx (Size: 32.21 KB / Downloads: 11)
#4
Hi Hiroe,

Yes, this is possible. You can use setSimulationSpeed:
https://robodk.com/doc/en/PythonAPI/robo...ationSpeed

For example, to pause the simulation you can do:
RDK.setSimulationSpeed(0)

To continue with normal simulation you can do:
RDK.setSimulationSpeed(5)

Albert
#5
Dear Albert,

My team member succeeded in his project thanks for your instruction.
Thank you.
  




Users browsing this thread:
1 Guest(s)