ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read one by one data from 2D array

I want to read one by one data from array.Example data in the array as below.
0  1  2  3
4  5  6  7
8  9  0  1

I try to use the index array and for loop to get the data. But unfortunately the result is wrong..please...does anyone can help me to solve this problem. I am not expert when using the 2D array...Please..I really need this answer immediately and very apprecite if anyone can give me the answer..

thanks...

0 Kudos
Message 1 of 5
(3,049 Views)
You could reshape the 2D arrray to a 1D array with a lenght corresponding to the product of the dimensions and the autoindex it into a FOR loop..


Message Edited by altenbach on 06-19-2008 08:25 PM
0 Kudos
Message 2 of 5
(3,045 Views)
Here's a quick draft....
 


Message Edited by altenbach on 06-19-2008 08:29 PM
0 Kudos
Message 3 of 5
(3,041 Views)
Did you use one for loop? For 2d array you need 2 to get individual elements.

Here is example. In 8.5, can save for something else if you need.


0 Kudos
Message 4 of 5
(3,036 Views)
hi..

thanks a lot...Smiley Wink
0 Kudos
Message 5 of 5
(3,035 Views)