06-02-2017 03:07 AM
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
Solved! Go to Solution.
06-02-2017 05:33 AM - edited 06-02-2017 05:34 AM
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.

06-02-2017 07:34 AM
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.
06-02-2017 08:01 AM
@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).