Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Separation problem of two different set of data in serial plot

Solved!
Go to solution

Basically, I am working on a project which has two different systems each system has a one ZigBee and both of these systems ZigBee are sending different data to single Zigbee which is connected to LabVIEW.So as in to separate both the system I have used a special character and word in starting of both of the reading.

reading are coming in this particular format 

system 1 :- $ROVER,2232,56.87,92.45...

system 2:- #PAYLOAD,84.96,9832,15.32...

 

Now the problem I am facing is I am not able to plot both of these system data simultaneously.

I have tried every possible thing I can but not able to do it.

I have attached my designed VI as well as screenshot of the logic
I have implemented two different approaches in a single VI but none of them is not giving appropriate result.
Please help me out  
 

  

Download All
0 Kudos
Message 1 of 4
(3,517 Views)
Solution
Accepted by topic author vibhork10

You should be using a case structure based on the header of the message.  This way you only process the "Payload" when it is payload and "Rover" when it is rover.

 

Other notes:

1. There is no need for the Wait when you are reading in data.  The timeout of the VISA Read will limit the loop rate.

2. You really need a way to stop the loop other than generating an error.

 



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(3,500 Views)

If your setup runs long time, you will run into the problem that the different timebases of your systems slightly differ.

At a certain time you will have read n values from device one and n+-x from device two.

If you want to do a timeplot I propose to add a (local) timestamp and use a XY-data graph format.

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 3 of 4
(3,485 Views)

@Henrik_Volkers wrote:

If you want to do a timeplot I propose to add a (local) timestamp and use a XY-data graph format.


You can use a simple chart (Sporatic Waveform Chart).



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(3,481 Views)