LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset a control?

I have a drop table entry control from a pull down menu, so the user gets to select 1-5 which will correspond to the row which to delete from my array. And this is the main principle of the whole vi which is in one big while loop. The problem becomes when the user selects a value and then that row is deleted but then the value does not reset and the next pass through whatever new values are in that row get deleted. Any suggestion as to how to reset the control to say -1 so only 1 row is deleted and then have the user be able to select the menu item to trigger another deletion. I hope I'm being clear enough,
Thanks
0 Kudos
Message 1 of 2
(3,008 Views)
Hi,

You can just use a local variable to write any value you want to the control. So after deleting the row, write -1 to a local variable of your drop table to reset it. (this works for all controls)

Erik van Dijk
0 Kudos
Message 2 of 2
(3,008 Views)