LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reduce array size

I started using a 2 column x 21 row array, wired to a FOR loop that processed the array data row by row using autoindexing. Then I reduced the array to 19 rows and set the last two rows of data to zero, and reduced the array size using the bottom sizing handle so it now looks like and should be a 2 col x 19 row array. However the FOR loop still loops as if it were a 21 row array. How can I get the autoindexing to see it as a 19 row array?
0 Kudos
Message 1 of 3
(4,418 Views)

The boundaries of your indicator have no influence of the array size. It is a purely cosmetic property that does not change the underlying data.

If you are in edit mode, you would right-click on the desired element and select "data operation... delete row" or "...delete colum".

If you need to change the size of a 2D array programmatically, you could use e.g. "array subset" or "delete from array".

Message 2 of 3
(4,410 Views)
Thank you. That's exactly what I needed to know.
0 Kudos
Message 3 of 3
(4,401 Views)