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: 

check if entry in numeric array is empty

Solved!
Go to solution

I have a numeric array (i32) that gets data inserted into it as the program is running.  I am looking for a way to determine if a specific index in that numeric array has been populated yet.  In other words, I need to determine if an index in a numeric array is empty.  Index array is close to what I need, but if the indexed entry in the array is empty, it will return 0 (the default value for this numeric array), which is a potential valid data entry for my numeric array, and therefore is not sufficient to check if the indexed result was originally empty or 0.

 

Any help on this is appreciated.

0 Kudos
Message 1 of 2
(3,455 Views)
Solution
Accepted by topic author ryancam

Compare the index with the array size.

Message 2 of 2
(3,443 Views)