This is a LabVIEW blog for LabVIEW developers. It is intended to provide free resources and tutorials for LabVIEW developers across the world. LabVIEW programmers are encouraged to add their comments and feedback of LabVIEW programming!
Thursday, October 23, 2008
Excepting some Controls (and Indicators) while Initializing whole VI controls and indicators to default
Need arises that sometimes you re-initialize values of everything in a VI to their default values. However, you just need to leave value of few controls and indicators as is. The above diagram explains how to do it. Use a sequence structure with 3 frames. Variables of those controls and indicators are placed in 'Read from' mode in the first frame. Variables of same controls and indicators are placed in 'Write to' mode in 3rd frame. The variables are wired through the second frame (using tunnels). The Invoke method node for re-initializing all values of the VI to default is placed in the 2nd frame. Like it? Drop a comment!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment