LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get two independent data sources to graph on the same chart?

I have one graph of streaming voltage and another graph of a simple boolean function which jumps from zero to one when a button is pushed. I'd like to have both lines of data display on one graph. The goal is to have an even marker for the voltage graph - pressing the boolean button would "mark" important data points during acquisition. How do I combine the two? (I tried putting both into an array and graphing that, but it seems to just average the two instead of plotting them separately.) Thanks.
0 Kudos
Message 1 of 4
(3,243 Views)
I'll be sending you something later this evening that demonstrates this.

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 4
(3,243 Views)
Use a bundle function to combine the two data sources and wire the output of that to your chart. Select Show Context Help and on the diagram, move your mouse over the chart terminal. The help displayed shows this as a way to display N plots. The other way is with a 2D array. I'm assuming that the array you created was a 1D array.
0 Kudos
Message 3 of 4
(3,243 Views)
And yet another way...

If you present an array of waveform data-types you can sidestep this issues of disimilar sample rates.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 4
(3,243 Views)