LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

storing front panel values between application runs

Labview 6.1 built application
 
I have built an application in which the operator can change setpoints that transmit through datasocket to a central controller.
The operator needs to be able to close his PC down, each time he reboots the application reloads with the default levels, this can cause alarm problems etc.
 
Is there a way of him entering the values to an area that will save his last values and reload as the datasocket values when the executable is restarted?
 
(his/her) no offence.
 
Any code or advice, thank you.
0 Kudos
Message 1 of 3
(2,588 Views)

Hi TKON,

To save your operators last set of values and reload them on the restart of your executable would require a new section of specifically written code.

Alternatively you could just try changing your default values to a different set of values which will not cause alarm issues. Your operator can then change the setting to those required from the new default settings once up and running again.

Do you need to change your settings continuously?

Does each new execution have to start with the values set to those of the last execution?

Emma R

NIUK & Ireland

0 Kudos
Message 2 of 3
(2,561 Views)
Hi,

You can use configuration files VI placed in the File I/O section. I use LV7 and It has it, I supose LV6 also has it.

What you can do is create an ini file with a configuration by default and then when program starts you read it and load this values to your window. You can load them reading from the ini file when you open the window that contains these levels. Finally, in this window you can create a button to save the new values that the operator enters for the levels. So If the operator need to save new values, he/she will press that button and the values will be saved to the ini file and then when operator closes his PC, reboots it and restarts the application the default values will be the last values the operator has entered and saved in the previous execution of the program because each time you restart it the values are loaded from the ini file.

I hope this helps you,

ToNi.
0 Kudos
Message 3 of 3
(2,549 Views)