LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to split up serial data from multiple sensors

I am acquiring serial data from a micro controller that has multiple analog sensors connected to it. How can I split the data up so I can assign each sensor it's own graph? I.e the first byte of data goes to graph1 the second to graph2, third to graph3 then repeat. I'm sure this is possible, just can't seem to figure it out. Any help would be greatly appreciated.
0 Kudos
Message 1 of 3
(2,757 Views)
What kind of synchronization code have you provided in the micro? Is there a prefix before the first byte or a known terminator after the last? One put both would be necessary.
Message 2 of 3
(2,756 Views)

Currently its just a null terminated string, but I can put a prefix before each set such as a+sensorbytes, b+sensorbytes; corresponding to sensor a and b respectively.  Now how can I seperate the a's from the b's?  Attached is my preliminary VI.  Thanks!

0 Kudos
Message 3 of 3
(2,739 Views)