LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed indexing data from a scaled array...

Currently 8 channels are read witht he AI READ.vi, the output is a scaled array. I need to display all 8 channles so I used the index array function. I am having problems index the 2D array. The index VI requires two indexes (row & column). I'm not too sure what to enter here.
0 Kudos
Message 1 of 3
(2,722 Views)
I'm not sure what, exactly, it is that you're trying to do. Are you trying to plot the individual channels on a waveform graph? Since the AI Read function will output the data in columns (each column is a separate channel), just take the 2D data, feed it into the "Transpose 2D Array" function and wire the output of that function directly to a waveform graph.

-Saverio
0 Kudos
Message 2 of 3
(2,722 Views)
Hi,
I just want to add something to the previous posting...

If you want to extract some channel from 2D array you just need to wire some value (the index of the channel) to the "column" index input of 'Index array.vi'. The output will be 1D array corresponding to specified channel.

Good luck.

Oleg Chutko.
0 Kudos
Message 3 of 3
(2,722 Views)