LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

application - how store values as default?

If I have an application (by using the application builder)
is there something like 'make current values default' for the application?
 
That would be great help!
 
I would like to chage the values an application is starting with, rather than having to rebuild the application each time I need a different start value.
 
An option would be reading the values from a file, and just editing the file, but a 'make current values default' would be so much more convenient!
 
I am using LabView 7.1.
 
If there is no such option in 7.1, is there in 8.0?
 
Thanks,
Stephan Leinert
0 Kudos
Message 1 of 6
(3,656 Views)
You are correct about a few things...

Make current values default (through a property node) does work as long as the VI is in memory. It can not re-write the .EXE file. So if you quit the application (unload from memory) and then re-run it from disk, you are back to the original defaults. Allowing a program to re-write its own .EXE file is opening a whole can of worms that few people really want to deal with.

Saving the values to a file is, indeed, you r best option here. I would suggest a .INI file. These are very easy to work with and text files (if you ever need to edit them by hand). Load at the start of the program and save at the end of the program.

     Rob
Message 2 of 6
(3,646 Views)
There are few examples in LAbVIEW Technical Resource on how to save a front pannel to a file.
 
If it should be simple than use ini file, but if you want to save some property of the front pannel probably the best option would be the "Property saver". It is a very nice and easy to use tool for LabVIEW.
 
There is also, as far as I remember, something with OpenG toolkit.
 
Personally I am very keen on "Property Saver".
 
cheers
Pawel
 
0 Kudos
Message 3 of 6
(3,636 Views)


@Robert Cole wrote:
Make current values default (through a property node) does work as long as the VI is in memory.

Just an additional note: The VI must be in memory BUT cannot be running. 😉
0 Kudos
Message 4 of 6
(3,633 Views)

Thank you for the quick help -

I will look into ini files and the other option.

Merry Christmas!

Stephan

0 Kudos
Message 5 of 6
(3,617 Views)

Hi,

I think you can you can try a simple method,

After entering the values goto Operate -->Make current Values to default then save the Vi and Build the application.

In this case you retain the default values at the start , and the values changes only if you change it manually.

Regards

Ashutosh C

Smiley Wink

 

 

 

0 Kudos
Message 6 of 6
(3,603 Views)