LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform Chart only shows one channel or combines both channels?

Hi,

I have 2 analog input channels and data was obtained by sampling at 500Hz and saved into a text file.

Can any one take a look at my VI and tell me why I am either only getting one curve plotted in the Waveform Chart or it's simply a combination of both of my inputs?

Thanks.



hellolv
0 Kudos
Message 1 of 2
(3,326 Views)
Hey hellolv!

The issue you are seeing is actually a pretty common one.  For a chart to update two plots the input to that chart must be a 2D array.  Basically this means that all you need to do is insert a Build Array function right before the chart.  I coded a quick example that does this for two random numbers in a while loop. 



If you have questions I might suggest that you implement this in LabVIEW.  You could also check the Context Help (Ctrl+H) and the Charts.VI in the Example Finder (Help » Find Examples).

Hope this helps!
Andy F.

Message Edited by Andy F. on 05-01-2006 12:15 PM

Message Edited by Andy F. on 05-01-2006 12:15 PM

-----------------------------------------------------------------
National Instruments
0 Kudos
Message 2 of 2
(3,311 Views)