Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

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
(5,394 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
(5,386 Views)
Thank you. That's exactly what I needed to know.
0 Kudos
Message 3 of 3
(5,377 Views)