LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Values in a 2D Array with for loop

Hello  

 

I am having a 2D array with values. ( see figure) I need to take the first value of the array (index 0,0)for the first time and then elemnt in index (0,1) and then elemnt in index (1,0) and so on ..Lets say i need to do it for many time as the size of array.in figure 6 times...I tried to do it in a for loop. but it gives me only the same value for al the 6 times the loop runs.

 

Can anyone help?

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 1 of 6
(3,384 Views)

It would use if you had shown your block diagram.

My advice is to use two loops nested one in the other, that should help.

 

If you want to add code look at the code Capture Tool it is great for this purpose, you select the part you want to capture, start the tool (Tools->Code Capture Tool), review your setting (FP-none, BD-selected, Clipboard-FileName), finish the capture.
Then you switch over to your internet browser, in the file dialog you past the file name from the clipboard and the file is attached.
To download

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 6
(3,379 Views)

Hi,

 

Like this.

Message Edited by jcarmody on 12-16-2008 12:02 PM
Message Edited by jcarmody on 12-16-2008 12:04 PM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Download All
0 Kudos
Message 3 of 6
(3,377 Views)

You might be able to use the Reshape Array function

 

Message 4 of 6
(3,365 Views)

Like this, although I didn't see this the first time I tried it.  If you hadn't mentioned it I would have thought that function was for something else.  I still don't know what it's for!

 

Message Edited by jcarmody on 12-16-2008 12:25 PM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 5 of 6
(3,361 Views)

 


jcarmody wrote:

 


 

 

 

Your solution is too specific because you need to modify it if the # of columns changes. Here's the generic solution:

 

(as already discussed here)

 

 

Message 6 of 6
(3,332 Views)