LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

initialize array and reinput output

I hope the title isn't confusing...

Basically I want to know the following.  I have an array (A_0) of decimals.  I want my vi to have a button that has some function (f) to cut out a portion of that array and return the new sub-array (A_1).  But I want that output to become the new input for that cutting function.  So that I can cut out multiple portions of the array, one step at a time.

f(A_0) = A_1 => f(A_1) = A_2 => ... => f(A_n-1) = A_n

Writing that last line I realize I'll need some kind of for loop.
But I can't seem to figure out how to rewire the output of the function as a new input.
0 Kudos
Message 1 of 3
(2,346 Views)

You'll need to use shift registers to pass the data from one iteration to the next. Right-click on the for/while loop border and add shift register. Then wire your function's ouput to the right-hand shift register, and the left-hand shift register to your function's input.

Message Edited by Sima on 06-15-2006 12:18 PM

0 Kudos
Message 2 of 3
(2,341 Views)
Use a shift register to transfer the output from one iteration of the loop to the input of the next.

Lynn
0 Kudos
Message 3 of 3
(2,338 Views)