LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I save VI settings?

I have a VI that includes several digital and string controls that I regularly stop (both correctly and with the red 'Abort Execution' button). Furthermore, I also regularly completey close the VI and open it back up again. Everytime that I reopen the VI, the display values default to certain values. Is there a way for the VI to remember the values in its controller automatically upon both halting the execution and closing the VI? Right now, my implementation uses global variables to keep track of things, but there ought to be a cleaner solution.
0 Kudos
Message 1 of 3
(4,071 Views)
If you are going to make an executable from your app, use ini files(under File I/O palette), else, you can use vi server property node make current values default.
Hope this helps
0 Kudos
Message 2 of 3
(4,071 Views)
VI Server allows you to call other VI's and pass data to them to be processed. There is a KnowledgeBase entry that discusses how to use this functionality to save default values, and it also provides an example. A link to the KnowledgeBase article can be found below:

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/862567530005f09c8625666f006410bc?OpenDocument

I found this document by going to www.ni.com, clicking on the KnowledgeBase link, and searching for "default value labview."
Message 3 of 3
(4,071 Views)