# URScript sent from my URcap is halted by PolyScope

**URL:** <https://forum.universal-robots.com/t/urscript-sent-from-my-urcap-is-halted-by-polyscope/22360>\
**Category:** URCap Development\
**Created:** [June 30, 2022, 1:03pm UTC](https://forum.universal-robots.com/t/urscript-sent-from-my-urcap-is-halted-by-polyscope/22360 "2022-06-30T13:03:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![claudia](https://avatars.discourse-cdn.com/v4/letter/c/a88e57/32.png) [@claudia](https://forum.universal-robots.com/u/claudia)\
**Post date:** [June 30, 2022, 1:03pm UTC](https://forum.universal-robots.com/t/urscript-sent-from-my-urcap-is-halted-by-polyscope/22360/1 "2022-06-30T13:03:12Z")

</div>

Hi,  
I’m developing a URcap which uses [URcap Sample: URscript communicator](https://forum.universal-robots.com/t/sample-urscript-communicator-examples/3093) to send a URscript to URcontrol when the user clicks on a button on the ProgramNodeView of my URcap.  
The script is sent on the secondary interface (port 30002) and runs for a while since it reads/writes some registers and moves the robot. The URcap works just fine, but I’ve noticed that if I interact with PolyScope while the script is still running, e.g. adding a Waypoint to the program tree, the script is immediately stopped.

Does anybody know why does this is happening? Is there any documentation to understand how Polyscope works and how/why it affects the scripts running on URcontrol?

Best regards,  
Claudia
