08-06-2010 05:48 PM
Need to parse a serial string in dasylab like:
T123.4F:V7654FTM<CR><LF>
into two channels, one for each number.
I can't figure out what to use for delimeters since the "F" and "T" are repeated.
thanks
08-09-2010 09:14 AM
If this is using a Data Request command, then use this:
ch 0 - data request command, data format is 1x a\x3a
ch 1 - no data request command, data format is 1x a\r\n
That should pick up the numbers, skipping the first T, parsing to the :, which skips over the first F, and then 1x to skip the V, parsing to the <CR><LF>, skipping the FTM and just picking up the numbers.
Let me know if it works...
08-10-2010 06:08 PM
cj- it worked great!
Thanks so much for the help.
Anyone interested - this is for interfacing a Amprobe TMA10A via serial to Dasylab.