LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a stored array element

Thanks Lynn.

It works!!

0 Kudos
Message 11 of 14
(667 Views)
Or just right-click on the initializer terminal and select "create constant". If the datatype of the node is already given (e.g. from within the loop), you'll automatically get a constant of the correct datatype. 🙂
0 Kudos
Message 12 of 14
(662 Views)

Thanks for all those replies.

 I could collect the elements in an array from the for loop as it iterated. Now I want to use a single element in that array and increment the index and then use the next.

I tried this with the shift register but it gives me the running sum as i do that. i dont get the desired value out. If i use tunnel it creates an array and i now have to use one element at a time and increment the index and use the second element and so on..how can I achieve this?

 

Thanks

Ravi

0 Kudos
Message 13 of 14
(611 Views)
If you want to step through the array from the beginning, one at a time, just feed the array into a for loop with indexing enabled as before.  If you want to select specific elements, use an index array.
Jim

LV 2020
0 Kudos
Message 14 of 14
(600 Views)