LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data logging from multiple sensors via RS232

Solved!
Go to solution

I am measuring data from 3 oxygen sensors which collect into a single controller.  The controller connects to my laptop via an RS232-to-USB cable.  Using termite and LabView I can see that it continually transmits data that looks like this:

M@@@0141160.3912011M@@@0139506.1563011M@@@0138818.984E4899A03A31011M@@@0141161.1412011M@@@0139500.9843011M@@@0138820.063CE70E003A31011M@@@0141160.8752011M@@@0139501.53M@@@0000000.0002011M@@@0000000.0003011

The actual data is each of the 10 digit numbers following the set of "M@@@"s.  (ie. the first oxygen sensor reads 0141160.391 ppm).  

How do I isolate those numbers in order to graph the values over time? and separating the three different sensors?

 

Thanks

0 Kudos
Message 1 of 3
(2,159 Views)

maybe some string manipulation, filter out @ and M? Maybe can even filter out all text characters.

then index array for the rest, I suppose its DBL

0138820.063CE70E0

but the C and E could well be hex

0 Kudos
Message 2 of 3
(2,145 Views)
Solution
Accepted by topic author LeroiVinncent

You need to convert the string into array and you need to use M@@@ as a delimiter. below figure will help you. 

string to array.PNG

 


CLD Using LabVIEW since 2013
0 Kudos
Message 3 of 3
(2,121 Views)