DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

dasylab serial string with two variables

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

0 Kudos
Message 1 of 3
(6,743 Views)

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...

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 2 of 3
(6,727 Views)

cj- it worked great!

Thanks so much for the help.

 

Anyone interested - this is for interfacing a Amprobe  TMA10A via serial to Dasylab.

0 Kudos
Message 3 of 3
(6,712 Views)