LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview build application, keep control settings

I have a labview application which is used for controlling a setup. The application is used on one pc and devoloped on another.  When a new version is deployed on the control pc all the settings (PID gains and stuff) have to be entered again in the application. Is there an easy way to export the settings from the previous version to the newer build?

0 Kudos
Message 1 of 5
(2,556 Views)

The only way that I know of is to program it your self.

Let the program detect a value change, and save that change.

When starting the program, load the last saved values.

0 Kudos
Message 2 of 5
(2,527 Views)

How do you set the factors to begin with the first time?  What do you do in between when you stop the program and restart, but don't actually deploy a new version?

 

Where is your application running; Windows PC, real-time PC, compact Fieldpoint, compact RIO, somewhere else?

0 Kudos
Message 3 of 5
(2,521 Views)

It depends.  If it is the case that you have a set of settings (hmm, "a set of settings"?) that you want to save as the "starting values" (or "default values"), you can save the VI with the Controls set to these "default values" -- open the VI, set the controls the way you want them, then click the Edit menu and choose "Save current values as Default".  Every time this VI is loaded into memory, it will now have these settings.

 

On the other hand, if you want to figure out the optimum settings while the program is already running, and save the settings for the next time, you can build a Configuration File that holds the settings you want.  One way to do this is to have a "Save Configuration" button which, when pushed, reads the relevant controls and writes their values into a file (a text file, a Configuration .ini file, an XML file, whatever you find appropriate).  You should probably decide on a fixed location for this Config file, and (of course) a defined filename.  When your program starts, it should read this Config file (be sure to test that it exists, and "fail gracefully" by simply doing nothing if there is no file) and (re-)set the Front Panel Controls.  The advantage here is that after using your saved Control set, you might decide to tweak one or more Controls, and save as a new Default -- just push the Save Configuration button, and you're all set.

 

BS

Message 4 of 5
(2,503 Views)

Thanks for the responses! In this case the interface was a control interface for a RIO controller. The settings will be stored there and loaded from this.

0 Kudos
Message 5 of 5
(2,488 Views)