Universal Robots Forum

IO.getValueStr() from a general purpose register returns "" / nothing?

Hey there,

is the IO.getValueStr() only working for digital/analog inputs/outputs?
I thought i could use it to read the values of general purpose registers,
but its just returns a empty string … :unamused:

Thanks for answers…

Unfortunately getValueStr() does not work with general purpose registers. Have a look here:

Thanks for your reply a.mora!

@UR-Team please update your api reference, for me - and i think for ohters too - it is not clear that the registers values are not accesible, see api reference IO class and getValueStr() as well isResolvable() methods. You could save some customers time and avoid repetitiv questions in the forum.

1 Like