LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ: 2D array to 1D array

How do I convert 2D array from DAQ read.vi to 1D array since I want to plot it in another XY graph?

 

It seems that I lose some data with the attached current method.

 

Thanks,

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

Hi,

 

You're indexing row 0 of the array, you loose all the info from all the other channels.

There is a function ReshapeArray.vi that converts an n dim array to a m dim array, and so you can convert your 2D array into a 1D array, but I'n not sure if that's what you want.

If you do this:

 Convert1DArray.png

 

You'll have all your plots in the graph, sharing the same x scale.

 

Hope this helps,

Paulo

Message 2 of 2
(2,791 Views)