LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous Acquire & Graph

I have a continuous acquire  from different sources with different frequencies, and I want to plot all data in the same plot. Some data can have different scales also.

How can I do it? Has someone an example?

Thank you in advance!

Gustavo
0 Kudos
Message 1 of 8
(3,164 Views)
First of all, what hardware are you planning on using, and how many different sample simultaneous rates do you have?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 8
(3,152 Views)
The data is been acquired from an ethernet network. The data sources are already working....


0 Kudos
Message 3 of 8
(3,149 Views)
Assuming the data is being as a block of data, you can add each block of data to an XY plot with its own x axis values. This sort of plot would be very easy to accomplish if the various acquisitions all start at the same time, or at know offsets from one another. To keep the waveforms in proper relationship with each other, you would want to have the X axis on the plot be in relative time.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 4 of 8
(3,144 Views)
Do you know any example that I can take some ideas to implement it?

Thanks again!
0 Kudos
Message 5 of 8
(3,139 Views)
This thread discusses how to build XY plots. Now the example that I created for this discussion utilizes random X and Y values, it shows the concepts that are needed for your graphing.

To synthesize the X axis for each dataset generate an array that has the same number of elements as the Y-axis data you are getting from the Ethernet measurement system and the value of each element is equal to the element index times the time difference between samples (the reciprocal of the sample rate). Generate an X axis for each of your datasets in this way and you can plot them all on the same XY graph and the relative timing between the signals will be correct - assuming as I said that all the acquisitions start at the same time.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 6 of 8
(3,134 Views)
Another problem, if I want to plot all graphs that generates data in differente rates at same time? Which kind of structure have I to use to do it?

I tried to store the data in some arrays but every time I send all points of all graphs to be plotted. I think that is not the best way to do the job.

Thanks!
0 Kudos
Message 7 of 8
(3,113 Views)
No that is pretty much what you have to do. The only plot-type that you can add data to is the chart - which you might want to look into if your datapoints are widely separated in time. Everything else, you replot the entire dataset.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 8
(3,102 Views)