Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

How to detect the robot driver connection status

#1
I want to detect the robot connect state in robot driver, I create a thread to check the state,but run the robodk will stop this thread, and it didn't work again. How can i do it?
#2
You can use the ConnectedState function to check the connection status of the robot driver:
https://robodk.com/doc/en/PythonAPI/robo...ectedState

What do you mean by RoboDK will stop this thread?
Can you share the RDK project file and the code you are using?
#3
(07-11-2023, 10:11 AM)Albert Wrote: You can use the ConnectedState function to check the connection status of the robot driver:
https://robodk.com/doc/en/PythonAPI/robo...ectedState

What do you mean by RoboDK will stop this thread?
Can you share the RDK project file and the code you are using?

I need to check the connection status at runtime, so I created a thread in the driver program, but once I run RBK related events, this thread will be interrupted
#4
Are you using the RoboDK API from the driver? I don't recommend you to do so. It can create a circular dependency.

The connection status should be performed by the driver itself. If you request to check the connection status from the driver to RoboDK it will forward the request to the driver.

Can you share the source code of the driver?
  




Users browsing this thread:
1 Guest(s)