From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 5.1 null array bug

Hi I am a new comer in Labview forum community.
I am experience some kinds of bug in Labview 5.1.
Please refer to attachment search.vi
Any good suggestion and comment are most welcome.



0 Kudos
Message 1 of 2
(2,174 Views)
Your FOR loop will only run once, because you autoindex on an array that has only one element.
 
To fix, take the element out of the array container and wire it the same way. (There is also a pre-made "empty String" cosntant that you could use).
 
I am not sure what the rest of your code is supposed to do. Maybe you want a while loop and stop under certain conditions? I don't think your input array should go into a shift register, it never changes. Use a plain tunnel. Maybe you want to search for multiple empty strings. In this case you should put the search location in a shift register and update it after each found element.

Message Edited by altenbach on 08-24-2006 08:33 PM

0 Kudos
Message 2 of 2
(2,167 Views)