LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i realize this simple Array program?

for i=0,i++
a(i)=signal,
end
0 Kudos
Message 1 of 3
(2,576 Views)
Here is a simple way. Note that the array will grow without bounds and eventually crash
Message 2 of 3
(2,576 Views)
> for i=0,i++
> a(i)=signal,
> end

You don't state what type signal is, but if you put signal inside a for
loop and wire the value out, it will auto-accumulate into an array at
the edge. Wire up N and you are finished.

In the case where signal is an array, the default behavior is to build
an array of one higher dimension -- a 2D array. This is normally fine,
but when you don't want this, wire to a bundle first, then to the edge
of the loop.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,576 Views)