Hi, i am having some trouble finding help on how to split a string here is an example of the string:
2us234us2us123us34us209u
I want this to be changed to a 2d array with
us | 234
us | 2
us | 123
us | 34
us | 209
I can make things easier by making the number always 3 digits, but this takes up room on the robots program space. One thing i can do is put dilimiters in like "." between 'chunks' (a chunk is two letters follwed by a number) and a "," between data so it becomes:
2.us,234.us,2.us,123.us,34.us,209.u
The reason that there are bits of the chunks at the begging and end of the string is that the string is comming form a device which is always sending the data even if no cable is connected or a program is running.
So, anyone know how i could achieve this?
Thanks In Advance,
Martyn