# Possible to obtain the value of variable on dashboard server

**URL:** <https://forum.universal-robots.com/t/possible-to-obtain-the-value-of-variable-on-dashboard-server/15637>\
**Category:** Robot Communication\
**Tags:** dashboard\
**Created:** [July 28, 2021, 8:29am UTC](https://forum.universal-robots.com/t/possible-to-obtain-the-value-of-variable-on-dashboard-server/15637 "2021-07-28T08:29:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fujikit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/fujikit/32/6042_2.png) [@fujikit](https://forum.universal-robots.com/u/fujikit)\
**Post date:** [July 28, 2021, 8:29am UTC](https://forum.universal-robots.com/t/possible-to-obtain-the-value-of-variable-on-dashboard-server/15637/1 "2021-07-28T08:29:12Z")

</div>

Hi,  
I have happend to find **dashboard command to obtain the values of variables** that is undescribed in manual.

_ **This feature is very useful for checking the state of robot program flow remotely!** _

ex: getVariable var\_1

 ![getvariable](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/b/bf6f1028cb58ecf3ebe877bc836017f68be6066d.png)

---

<div class="post-metadata">

**Author:** ![anon95727648](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon95727648](https://forum.universal-robots.com/u/anon95727648)\
**Post date:** [August 3, 2021, 3:10pm UTC](https://forum.universal-robots.com/t/possible-to-obtain-the-value-of-variable-on-dashboard-server/15637/2 "2021-08-03T15:10:08Z")

</div>

Interesting. How did you discover this? I wonder if it is possible to set a variable from the Dashboard Server.

---

<div class="post-metadata">

**Author:** ![fujikit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/fujikit/32/6042_2.png) [@fujikit](https://forum.universal-robots.com/u/fujikit)\
**Post date:** [August 4, 2021, 7:59am UTC](https://forum.universal-robots.com/t/possible-to-obtain-the-value-of-variable-on-dashboard-server/15637/3 "2021-08-04T07:59:09Z")

</div>

I sent the letters “getVariable Model” to dashboard by mistake when using the function “getVariableModel” in programming urcap.

So I happend to confirm the value returned from dashboard.

---

<div class="post-metadata">

**Author:** ![MikeM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/mikem/32/3114_2.png) [@MikeM](https://forum.universal-robots.com/u/MikeM)\
**Post date:** [September 19, 2021, 8:10pm UTC](https://forum.universal-robots.com/t/possible-to-obtain-the-value-of-variable-on-dashboard-server/15637/4 "2021-09-19T20:10:48Z")

</div>

Have you found out whether it’s possible to “set” a variable via dashboard server? I have tried several combinations of “setvariable var\_1”, “set var\_1”, and/or “set\_variable var\_1” with no success. The getvariable \<desired\_variable\> works for both installation variables and currently running program variables, good find!

---

<div class="post-metadata">

**Author:** ![fujikit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/fujikit/32/6042_2.png) [@fujikit](https://forum.universal-robots.com/u/fujikit)\
**Post date:** [September 22, 2021, 9:34am UTC](https://forum.universal-robots.com/t/possible-to-obtain-the-value-of-variable-on-dashboard-server/15637/5 "2021-09-22T09:34:35Z")

</div>

I don’t know about that.  
Would you please request your feature on this forum.

---

<div class="post-metadata">

**Author:** ![androidflorent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/androidflorent/32/3314_2.png) [@androidflorent](https://forum.universal-robots.com/u/androidflorent)\
**Post date:** [November 8, 2021, 11:07am UTC](https://forum.universal-robots.com/t/possible-to-obtain-the-value-of-variable-on-dashboard-server/15637/6 "2021-11-08T11:07:26Z")

</div>

This is part of the undocumented commands like “setio”, “usb inserted”, “profile”, …

I tried everything, but you can’t write a variable.  
I understood that only a robot program can write a variable. You can send a script via PrimaryInterface that writes a variable, but that pauses the main Polyscope program…  
On the other hand, you can write an installation variable via PrimaryInterface and start the program that can use the new value of the installation variable.
