I would use array input indexing tunnel on the loop, as well as a shift
register. Initialize the left hand side of the shift register to zero (for
the first iteration). Inside the loop, subtract the left shift register
from the indexed array element and wire this to an indexing output tunnel.
The indexed array element (wired to the top of the subtract) is also wired
to the right hand shift register. The "NewArray" is on the outside of the
output loop tunnel.
Make sense?
Brian
"Se" wrote in message
news:5065000000080000003E8A0000-1042324653000@exchange.ni.com...
> I have an array of i element and I want to minus each of those
> elements. This is what I want to do:
> while (i>0)
> { NewArray[i]=array[i]-array[i-1];}
> it would do nothing when i
=0. How can I do that with labview?