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
New Zealand
Asked — Edited

Data Read Function

Hi DJ Sures... @DJ

Really been enjoying scripting over the holiday period.... even took my EZ-Bee with me to the beach to work on in the evenings... (It's peak of the summer here in NZ!)

Anyway I have a function request for the "things to do" list.

The read from file is awesome and great for larger volumes but I think it would be good to also be able to read smaller preset data sets from within the script.

10 # Read Dataset example
60 :Loop
70 if ($x<5)
80 read $A
90 Saywait ("$A")
90 Endif
100 goto (Loop)
120 halt ()
130 # May need an Dataset identifier here
140 Data 10, 32767
150 Data apple, orange, peach, pear, plum,
160 Data DJ Sures Rocks, Flattery gets us everywhere

May also need a way of selecting which dataset to use for the adept scripter who wants multiple data sets in a script

Now that I have posted and edited I realise I can do this with a variable and the split and contains functions... a little messier but still 'functional'.
(Lol - Old Programmer humour)



Upgrade to ARC Pro

Synthiam ARC Pro is a cool new tool that will help unleash your creativity with programming robots in just seconds!