LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save data in a string control?

I want to save data in a string control or indicator. I know that I can rt-click and make the data default. But can it be done through a proberty node or something else when the program is running?
0 Kudos
Message 1 of 2
(2,773 Views)
There isn't a "Make Current Value Default" method that you can invoke programmatically, this would require your VI to be saved when it was closed, which obviously couldn't be done if it had been built into an executable.

You could read the values from the controls/indicators and save them in a .ini file using the Configuration File VIs on the File I/O palette, and have some code at the start of your program that reads the values from the file and puts them into the objects using local variables.
Message 2 of 2
(2,773 Views)