LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting on Two Charts in Labwindows

Hi,
     I'm currently reading data from four analog channels and using plotY to plot them on a single chart.
The fisrt two channels are for device0 and the next two channels are for device1.
Is it possible to split the data for plotting on two separate charts.
Thanks
 
-Charles
0 Kudos
Message 1 of 2
(3,029 Views)
Hi Charles,
 
That will be no problem at all.  Looking at the example project under Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Analog Measurements >> Voltage >> ContAcq-IntClk.prj, notice the function EveryNCallback.  I would change the Fill Mode parameter of the Read Analog F64 function to "Group by Channel."  Then, you can make two calls to PlotStripChart (assuming you have already made another Stripchart on your UIR and you are referencing the two different chart handles in the two different calls).  If you were only reading two channels, the first call will have numRead for the Number of Points parameter, instead of numRead*gNumChannels.  The second call will also have numRead for this parameter, but will have a Starting Index of numRead.  Now, the two plots will each contain the data for one channel. 
Cheers,

David Goldberg
National Instruments
Software R&D
0 Kudos
Message 2 of 2
(3,006 Views)