We have developed two different UR Cap for two hardware connected to the UR Controller. While hardware is moving and it goes to system emergency stop the polyscope freezes and we have to power off the teach pendant to regain the controller.
What can be the possible reason and solution?
Do you use “thread.sleep(x)” in any threads ?
When I used “thread.sleep(x)”, the polyscope is freezed.
I am not using threading in any Cap. Its two UR Cap with two separate daemon with no communication with each other.
Anything you do in your View-class will by default be blocking calls for PolyScope.
I.e. if the user clicks a button in yout UI, and it waits for a reply that never comes, this may cause entire PolyScope to freeze.
If you are doing something that requires time like that, it is recommended to use a Timer and “invokeLater” as demonstrated in the MyDaemon example.