gergallardos
Member
So i have this application where I have to read/write from/to the serial port.
Write has worked fine so far, but it is reading that I have issues with.
Say in my app, i am writing these lines:
TREV
TDIR
And the device should return something like:
> TDIR
*1 - SETUP USES 81 BYTES
*10 - Q5318R USES 148 BYTES
*11 - Q5318 USES 128 BYTES
*12 - Q5319R USES 149 BYTES
*13 - Q5319 USES 128 BYTES
*18 - Q5321R USES 175 BYTES
*19 - Q5321 USES 128 BYTES
*8 - Q5317R USES 148 BYTES
*9 - Q5317 USES 128 BYTES
*20 - Q4451R USES 257 BYTES
*21 - Q4451 USES 128 BYTES
....
How do I do to put each one of those lines in an element of an string array so that I can handle them later?
I am communicating with a Parker 6K2 motion controller.
Write has worked fine so far, but it is reading that I have issues with.
Say in my app, i am writing these lines:
TREV
TDIR
And the device should return something like:
> TDIR
*1 - SETUP USES 81 BYTES
*10 - Q5318R USES 148 BYTES
*11 - Q5318 USES 128 BYTES
*12 - Q5319R USES 149 BYTES
*13 - Q5319 USES 128 BYTES
*18 - Q5321R USES 175 BYTES
*19 - Q5321 USES 128 BYTES
*8 - Q5317R USES 148 BYTES
*9 - Q5317 USES 128 BYTES
*20 - Q4451R USES 257 BYTES
*21 - Q4451 USES 128 BYTES
....
How do I do to put each one of those lines in an element of an string array so that I can handle them later?
I am communicating with a Parker 6K2 motion controller.