# Set values GP registers in runtime using Installation Node

**URL:** <https://forum.universal-robots.com/t/set-values-gp-registers-in-runtime-using-installation-node/2569>\
**Category:** Java\
**Created:** [August 22, 2018, 7:03am UTC](https://forum.universal-robots.com/t/set-values-gp-registers-in-runtime-using-installation-node/2569 "2018-08-22T07:03:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ajp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/ajp/32/471_2.png) [@ajp](https://forum.universal-robots.com/u/ajp)\
**Post date:** [August 23, 2018, 2:00am UTC](https://forum.universal-robots.com/t/set-values-gp-registers-in-runtime-using-installation-node/2569/2 "2018-08-23T02:00:00Z")

</div>

Hi @anon23279734

Sending to the secondary client should work… have you checked out this example? Are you sure your script syntax is correct?

> [@URCap Sample: Send Script with button push URCap](https://forum.universal-robots.com/t/sample-send-script-with-button-push-urcap/1203):
>
> sendScriptWithButton URCap Description of functionality: This URCap enables sending a movej() or popup() command to the secondary client interface, by pushing a button in the GUI. It implements the class clientSendScript.java which handles connection, transmission of script, and termination of the necessary socket. According to the URScript manual, two pre-defined functions has been implemented, namely movej() and popup(). For demonstration, this has been put into use in a program node with b…

So when you say at runtime, you want to be able to do this while the main program is running? In that case you could send it at a secondary program like this:

```
sec prog():
 write_output_integer_register(0,1)
end

```

[https://www.universal-robots.com/how-tos-and-faqs/how-to/ur-how-tos/secondary-program-17257/](https://www.universal-robots.com/how-tos-and-faqs/how-to/ur-how-tos/secondary-program-17257/)

---

_[View the full topic](https://forum.universal-robots.com/t/set-values-gp-registers-in-runtime-using-installation-node/2569)._
