DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

icom TCP/IP parsing data

Hello,

 

I have a Datataker DT80 that is automatically sending messages to Dasylab 12.0 that I can read from the ICom monitor module. The DT80 messages have the following format,

 

 

D,101245,"PROJETE",2014/11/14,19:37:32,0.887084,0;B,0,3.603064,23.28449,21.412624,-24.932666,673.31992,-124.61448,-0.74798,0.337155,1.202812;0141;8DFE

 

I use the following filter as a starting point, "0;B,0,"a\r.

 

the '\r' isn't correct since I and trying to parse the next comma and I tried the hexa of the comma which is '\x2c' and still can't segregate each data seperately.

 

How can I parse the rest of the message where each data I need is seperated by a comma ','.

 

Thank you in advance,

 

Richard

0 Kudos
Message 1 of 7
(6,249 Views)

Hi Richard,

 

You're on the right track.

 

D,101245,"PROJETE",2014/11/14,19:37:32,0.887084,0;B,0,3.603064,23.28449,21.412624,-24.932666,673.31992,-124.61448,-0.74798,0.337155,1.202812;0141;8DFE

 

For channel 0, use ",0;B,0,"a\x2c

For channel 1, use a\x2c

then repeat until the end, where it will terminate with the semicolon, \x3b

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 7
(6,211 Views)

Thnak you CJ_Butler__DASYLab_Pro,

 

I tried your solution, but Dasylab inserts on each channel the last data of my Datataker string. I have attached the configured module.

 

Thank you,

 

Richard

0 Kudos
Message 3 of 7
(6,182 Views)

Can you attach a print screen on the ICOMS monitor? That will show me what you are getting and verify the parsing. 

 

Thanks!!

 

 

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 4 of 7
(6,178 Views)

Thank you for your help, I attached 2 screenshots of my settings.

 

Richard

Download All
0 Kudos
Message 5 of 7
(6,161 Views)

Hello CJ_Butler__DASYLab_Pro ,

 

I Think I have my data in each channel now. I was expecting each channel to display its value in the Monitor section, but it parses the whole string and displays the last channel in the Value field. When I output each channel in a digital display, everything show up correctly.

 

Thanks again for your help CJ_Butler__DASYLab_Pro,

 

Richard

0 Kudos
Message 6 of 7
(6,155 Views)

Thank you for the update.

 

The red text in the monitor window is a good indicator that the parsing worked.

 

 

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 7 of 7
(6,143 Views)