ip5c Posted August 26, 2004 Report Share Posted August 26, 2004 Hello there, I just started learning LV, and would appreciate if somebody tells me how to reset front panel controls without using local or global variables. Thank you in advance, Irina Quote Link to comment
Bryan Posted August 26, 2004 Report Share Posted August 26, 2004 You can select an "Invoke Node" from the diagram palette under "Application Control". Right click on it and select "SELECT CLASS" >> "VI SERVER" >> "VI" for it's class. Then right click on it again and go to "METHODS" >> "REINITIALIZE ALL TO DEFAULT". That should do it for ya. Quote Link to comment
ip5c Posted August 26, 2004 Author Report Share Posted August 26, 2004 thanks a lot!!! my vi looks much better now Quote Link to comment
Bryan Posted August 27, 2004 Report Share Posted August 27, 2004 I'm glad I could help! Just something to add. If you set a value of a control or indicator, right click on it and go to DATA OPERATIONS >> MAKE CURRENT VALUE DEFAULT and save your VI, it'll use that value as the default value when you use that function I showed you. So you don't always have to have, say, a numeric control reset to 0. You can also programmatically set the default value of controls by creating and using property nodes for the desired control. I hope I didn't tell you stuff you already know, but I just thought I'd add some extra stuff in that realm for you to ponder. Enjoy! Quote Link to comment
aledain Posted August 30, 2004 Report Share Posted August 30, 2004 You can also programmatically set the default value of controls by creating and using property nodes for the desired control. 1568[/snapback] Remember too, that programmatic saving of control defaults does not work in a built application. Quote Link to comment
twstedsurf Posted July 13, 2005 Report Share Posted July 13, 2005 You can select an "Invoke Node" from the diagram palette under "Application Control". Right click on it and select "SELECT CLASS" >> "VI SERVER" >> "VI" for it's class. Then right click on it again and go to "METHODS" >> "REINITIALIZE ALL TO DEFAULT". 1556[/snapback] Hi, i was wondering if you needed to include the reference number for the vi that you place the node into, or is that just necessary to reinitializing the variables in another vi? thanks, jesse Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.