11-27-2014 08:36 PM
Is there a way to re-initialize the state of a control (enabled vs. disabled) when the vi is re-opened? I have set a few controls to disable when an "continuous run" button is clicked while the program runs. However, if the user then stops and closes the vi, the controls remain disabled when the vi is re-opened. I would like them to be reinitialized to enabled for the next user.
Solved! Go to Solution.
11-27-2014 10:24 PM
Please put a while loop to run contineuously, do not use "Run Continuous" button.
As far as initializing it to required state, use property node or Invove node appropriately.
11-27-2014 11:13 PM
Hello,
You have to just enable the control before your code execution enter in to the Main loop. As shown in below image, you have just follow the data flow of your code
Kudos are always Welcome... 🙂
11-28-2014 03:36 AM
You can right click on control enable it then again right click and go to Data operations and select Make current value default.
11-28-2014 07:39 AM
Thanks very much for the example. Makes sense - this is what I was trying to do but hadn't set it up quite right.
The solution presented by PBP also seems to work ok for my needs, although I could have sworn the same thing wasn't working for me yesterday! Anyhow, thanks to all for quick replies, much appreciated