Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.

Get Started
Asked — Edited
Resolved Resolved by Rich!


I get " syntax error, unknown command " when I try to put in UARTRead(0,0,10)
in my script. Anyone come across this?


Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.

United Kingdom
How are you using the command? Can you provide sample code?

Bear in mind, any command which fetches data must be assigned to a variable or used as part of an expression such as;


$x = UARTRead(0,0,10)



IF(UARTREAD(0,0,10) = "true")



Print("Data Received: " + UARTREAD(0,0,10))

Every ARC control and EZ-Script command has an example in the examples folder. The UART example is in EZ-Script Function Syntax\ and is named UART Peripheral. The scripts within the Example Project should help you understand how to use the commands.
United Kingdom
It's a common mistake, I wrote a quick tutorial on getting data and using it in EZ-Script a while back which explains why just the command on it's own is meaningless.

For a better understanding, if you want it, have a read of this topic.

Glad that solved the problem:)