LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unexpected behavior of For loop - bug?

Solved!
Go to solution
Every time i run the code, data from for loop index tunnel adds new data to the previous run, but only in one of the two for loops.
Is there anything I'm overlooking??
I am running Labview Community Edition 2023 Q3 32bit 23.3f0
I have attach a vi saved in 23Q3 and one saved for labview 19.
0 Kudos
Message 1 of 3
(712 Views)
Solution
Accepted by topic author omas

Not a bug. It is the uninitialized shift register of the middle for loop. It keeps the values of the last run, letting the string array grow.

Initialize the shift register with an empty array.

Message 2 of 3
(709 Views)

Nice catch! I had completely overlooked that 🙈

 

Thank you

Best regards

Thomas

0 Kudos
Message 3 of 3
(687 Views)