LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I know which channels are displayed on the labview graph when read using an example program for the NI USB-6009

Hi I'm an undergraduate college student working with NI USB-6009 and LabVIEW. I'm playing around with the example programs that came with USB-6009 for analog single-ended input into LabVIEW. I'm trying to figure out how can I make a particular analog input channel (such as AI 0 or AI 1...7) be displayed separately on the graph in LabVIEW when taking separate or multiple single-ended measurements (such as when running the example program "ai cont multi" that came with USB-6009. So far I was able to use the "stack plots" option for the graph, but it seems I can stack a single plot into as many plots as I choose by adjusting the # of "samples to read" and # of "plots shown" in the example program. It does not make sense to me that a single plot can be stacked into, say 5 plots, if I have configured only 2 channels to be read on the "DAQmx Base Task" in the NI-DAQmx Base Configuration Utility. I'm wondering if anyone knows how to separate individual channel inputs on the graph in LabVIEW using the DAQmxBase (not DAQ assistant cause it does not support USB-6009) to input the single-ended signals.
0 Kudos
Message 1 of 2
(2,475 Views)
Use a "Convert From Dynamic Data Type"...or "From DDT" to extract the array of data from the DDT that is used with many of the DAQ VIs. Once you have this...it should be easier to see how to send it to a chart.

A single plot could be stacked as 5 plots if you are transposing a single channel 5-point read into a 5 channel single-point read. The "number of samples to read" sets the number of data points LabVIEW will pull into memory from the device at a time. If you set it to 5...you will receive a 1D array of 5 elements...each element is a sequential reading from channel 1.

-Brett
0 Kudos
Message 2 of 2
(2,464 Views)