LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Initializing Front Panel TEXT string variables

Is there a shortcut way to save and re-initialize front panel text (such as test name) when the main vi is loaded? If I have to manually write this info to a file and read it back when I start the vi, then is there a preferred standard solution, such as using the config file format?
 
Thanks,
John
0 Kudos
Message 1 of 2
(2,349 Views)

John,

 

There are methods for the VI called Reinitialize to Default, and Make Current Values Default.  These might be useful to you.  However, Make Current Values Default requires that the VI be in edit mode, and must therefore be called from another VI before or after the VI runs.  You'll also probably want to call the Save method after calling Make Current Values Default.  This topic has been covered many times on this forum and on some of the other forums out there.  A search on here or google should return some good content and examples.  For example, I'm pretty sure the OpenG toolkit (from OpenG.org) has some functions which do what you are looking for.

 

Regards,

Ryan K.

0 Kudos
Message 2 of 2
(2,344 Views)