Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create an array of elements obtained from for loop .

Solved!
Go to solution

I have to obtain an array of elements obtained from the for loop so that i can use that array further in my program;while using arrayVI from array and cluster function pallete it gives only the last value generated fromthe loop .I want all the values generated from each iteration to be stored in the array.Please suggest some options

0 Kudos
Message 1 of 6
(3,210 Views)
Solution
Accepted by topic author J.H.Agrawal
When a wire exits a for loop, by default it is auto indexed into an array. Right click on the tunnel and change it back to that.
0 Kudos
Message 2 of 6
(3,208 Views)

If auto indexing is disabled it will by default return only the last value .I want all the values generated at each iteration so that i can use that array further.Thankz for reply

0 Kudos
Message 3 of 6
(3,204 Views)

I tried with that it works when shift reg are not used. But since i m  using a shift register  in the loop it does not give me the values .Please suggest the solution when shift reg are used

0 Kudos
Message 4 of 6
(3,198 Views)

Hi,

 

Here is an example using the build array function with concatenating inputs.

Is this what you are looking for?

 

Best regards

Matej

/* A smart device is only as smart (stupid) as its programmer. */
Message 5 of 6
(3,188 Views)

Thank you so very much now my problem is solved.Thankz

Message 6 of 6
(3,166 Views)