ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How does one empty an array during runtime with a front panel switch

I can 'empty array' from the front panel during runtime but I want to empty all arrays (20) from my vi with a front panel switch (see screenshot). I have used replace array subset and reshape array with no success. Any help would be appreciated
0 Kudos
Message 1 of 4
(2,933 Views)
Hmm... You can empty an array by reshaping it or by assigning a constant empty array - using local variables or properies of the original control (see attached example... hmmm... not the best one :)). May be you can attach a part of your code to see what is better to do in the given case.
Message 2 of 4
(2,933 Views)
I figured out my mistake. I forgot to use an initialize array function. My fix is attached
0 Kudos
Message 3 of 4
(2,933 Views)
Thanks for the help. I figured this one out on my own. I was working until 5AM and was a little sleepy. Thank you for your input though. I see you responses are very helpful to others in the forum.
0 Kudos
Message 4 of 4
(2,933 Views)