C# Stop a function SetPTPCmd at running time


#1

Good afternoon Dobot Community,

I am making a Unity app connected to the DobotMagician.
I am using the dll and C# example provided in the DobotDemov2.

I would like to know if some of you know how to stop a SetPTPCmd function in process by c#?

My problem is that I control the Dobot Joints through sliders in a unity interface. It works well when I move my slider slowly (joint values) but if I enter new values before the complete execution of his movement it won’t be taken into consideration. I know I could put every new values in a queue, but I don’t want that Dobot takes all these values I only the last one.

My plan is to stop a SetPTPCmd function in process before send a new request.Is it possible?

Thank you for your help~^^


#2

Then maybe you need to issue the force stop command: