LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem plotting two plots on waveform chart

Solved!
Go to solution

I am trying to plot two equal length sets of data in a single waveform chart. Other posts have shown the method to use as using the bundle cluster node to combing the two sets of data into a cluster which is then wired to the waveform chart. However when I try this I am getting a wiring problem stating that the source is composed of two elements whereas the sink is of type double. It is possible to plot the two data sets separately but what I want is to combine the two datasets in a single waveform plot. Please see the attached image for the error. 

0 Kudos
Message 1 of 2
(1,718 Views)
Solution
Accepted by topic author Sr-QH

Use "built array" to create a 2D array, possibly transpose if needed. Alternatively, use "index and bundle cluster array"

 

altenbach_0-1630520087568.png

 

 

(The bundle is to form X and Y data for an xy graph, not applicable here. It only works for charts if the inputs are scalar.)

 

Are you sure you don't want a graph instead of a chart? (Do you know the difference?). How big are these arrays? What is the chart history length?

 

You can get significantly better help when you attach a simple VI instead of a truncated picture. Please do so! Where does the data come from/ What does it represent? How often does it change? I am sure there quite a few other working alternatives.

0 Kudos
Message 2 of 2
(1,707 Views)