How to handle events in python

How can you handle events in python? like during linear movement an emergency stop is pressed, how can a script handle the event and proces it.

Hi Daanvdw,

You can call xarm.emergency_stop or set_state(4) to stop the arm, they are all separate threads and will execute immediately once sent, without queuing.

Best regards,
Minna