LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

for loop, strings and case structures.

how do i pass out only a TRUE case string without passing the FALSE case? this is running in a FOR loop so im creating a string array, but i dont want empty elements where the default FALSE value has been tunneled out(ie the loop has N=5, so a string array of 5 elements is created) how can i end up with an array that contains only the TRUE case strings(ie N=5, but an array of only 2 elements)
0 Kudos
Message 1 of 3
(2,758 Views)
You need to use an approach which doesn`t use auto-indexing the tunnel leaving the FOR loop. I have included an example.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Message 2 of 3
(2,758 Views)
One way you can do this is by using a shift register and append array (insert without index) function.

First initialize the shift register as an empty array. Then, just appended the string values to that array as part of the TRUE case.
0 Kudos
Message 3 of 3
(2,758 Views)