LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
acolbourn

Ability to save all program settings (booleans, numerics, etc...) with single button

Status: Declined

Any idea that has received less than 6 kudos within 6 years after posting will be automatically declined.

Instead of needing to go through and parse your own way to save and load data/settings (boolean values, numeric entries, etc...) it would be nice to have a save all function.  It would work in a similar way to "make current values default" option except that now it would save it to a file so a user could load multiple different "current values default" files.  This way a user could load many different settings into a program with a single button click and from a programming perspective it would just be a matter of dropping a "save all values" function onto the block diagram.  

7 Comments
crossrulz
Knight of NI

Here's a similar one:http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Automatic-ini-files/idi-p/1791674

 

I know there's more, but I'm not having much luck with the search engine.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
acolbourn
Member

Interesting.  Some people's concern is that instead of saving everything you may only want to save certain values, so it would be cool to make it so you could add items that you want to be saved to a list inside the function.  For example, you could simply add "button 1, temperature 3, pressure 2" to the list and those would be saved, everything else ignored.  

pjlaskey
Member

There used to be a set of VIs called PropSaver which would do something similar.  It hasn't been updated since version 8.6 (I believe) and there are some errors when trying to compile it for newer versions.  Much of the functionality has stopped working in LV2012.  It could probably be updated if anyone has the time / inclination.

labview4steve
Member

This idea is ok, but we don't need labview to do everything for us....
The Normal way to do this is to have a simple function that reads the values of any controls you want, and save them to a file -( xml is an easy way), then read the file back on initilisation and load them back into the controls.. its pretty simple - 
a way to keep this manageable is to save each control on a value change in the same place the event is intercepted.... then you already have the last changed value... and then all you need to do on shut down is save the values to a file..... on start up load the values into the appropriate local variable - that way you can leave the control itself in the even manager.

mnboone
Member
Related to this idea (and a practical way of working towards the idea) is to get a "default value manager", where you can quickly see which ones are set and which ones aren't. In this manager, a "profile" could be added for multiple sets of default values
acolbourn
Member

That's a great idea too, my customers would love to be able to see an overview of their saved settings before loading them in.  Especially since there parameters change almost daily so keeping track of values and switches in a save file gets confusing pretty quick.  Right now the only way to see the settings is to load them in, seeing them before would be invaluable so they could make sure its right while the program is running before implementing them.  Maybe even a screenshot would be useful but a list would work great too.  

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 6 kudos within 6 years after posting will be automatically declined.