As far as I know I always need a shift register when I build an array in a loop depending on a certain condition.
In the example below I create 100 random numbers and want to collect only the results > 0.5 in an array.
The upper block diagram shows the current solution with a shift register.
If the condition is true, the result is added to the array.
If the condition is false, the array remains unchanged.
My proposal is a NIL element, which can be put into an indexing loop output but adds nothing to the array.
The NIL element should be able to auto-select it's data type when it gets connected.
With such a NIL element the outcome of both VIs should be the same.
Kind regards,
Dietmar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.