Welcome to Synthiam!

Program robots using technologies created by industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation, and artificial intelligence easy.

Get Started
Asked — Edited
Resolved Resolved by DJ Sures!

Retrieving Array Values Via Tcp Server

I was wondering what the best method is of retrieving values in an array via the TCP server.



Upgrade to ARC Pro

Become a Synthiam ARC Pro subscriber to unleash the power of easy and powerful robot programming

AI Support Bot
Related Content
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
Are you using something like C# to query?

You could ask for the variable something like this....


bool success = true;

int cnt = 0;

List<string> values = new List<string>();

while (success) {

send(string.format("print($variable[0])", cnt));

string val = readLine();

if (val.contains("Index was outside the bounds of the array.")) {

success = false;
} else {



This was really a request from STeven from Roborealm so let me check with him.
So when the Array is created inside ARC it really is multiple variables with the index at the end and you use the print command to read the variable

If that's true my initial response to him was correct.

I wanted to verify if my logic was sound.
A second question I had for myself was does EZ-Script support Multidimensional or Jagged arrays?

Thanks for your help DJ
if this is for steven, tell him that I will be creating a "dump variables" option for him
I will let him know what you said.

As of now you can in fact get the arrays from the RR EZRobot_variables module into ARC.

It was the retrieving them that prompted the question from STeven

I have just implemented a DumpVariables() function which will output a list of all variables in ARC and their respective values. It will be included in the next release which is now postponed until after tomorrow's testing.
Thank you very much DJ.

Your hard work and that of your team is really appreciated.
That is awesome. I will add a function into EZ-DB to call that and store all current variables to a database.