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?
Thread Rating:
How to detect the robot driver connection status |
07-11-2023, 10:11 AM
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?
07-11-2023, 11:48 AM
(07-11-2023, 10:11 AM)Albert Wrote: You can use the ConnectedState function to check the connection status of the robot driver: 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
07-12-2023, 09:35 AM
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) |
Copyright © 2025 RoboDK Inc.
Powered by MyBB