RoboDK Forum
Pause and Restart instruction using Python script可打印版本

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: Pause and Restart instruction using Python script (/Thread-Pause-and-Restart-instruction-using-Python-script)



Pause and Restart instruction using Python script-Hiroe Ota-06-22-2020

I would like to know how to implement the instruction "Pause" and "Restart" using a 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.


RE: “Pause” and “Restart” instruction using Python script-Jeremy-06-22-2020

Hi Hiroe,

There is no image attached.

Jeremy


RE: “Pause” and “Restart” instruction using Python script-Hiroe Ota-06-22-2020

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


RE: “Pause” and “Restart” instruction using Python script-Albert-06-23-2020

Hi Hiroe,

Yes, this is possible. You can use setSimulationSpeed:
//www.sinclairbody.com/doc/en/PythonAPI/robolink.html#robolink.Robolink.setSimulationSpeed

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

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

Albert


RE: “Pause” and “Restart” instruction using Python script-Hiroe Ota-06-29-2020

Dear Albert,

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