10-09-2008 04:39 AM
Hi, I have built an executable in Labview.
I would like to save the values for all controls in the FP as defaults - programmatically, in order to load them next time the executable is launched.
I know I can do this by writing all to a file, but in a previous post on this site it was recommended to use the functions SavePanelState and RecallPanelState, to store / retrieve all values in one single step.
However I can not find any information on these functions or where they are located - can anyone help me ?
10-09-2008 04:49 AM
As far i know there is no such property.
You have to do it with a file.
Can you provide the link, you read it?
10-09-2008 05:06 AM
For some reason I can't find it now; but when I search for SavePanelState I get a lot of hits regarding LabWindows/CVI. So maybe, these functions only exists there.
Anyway, you say the only way is writing to a file ?
10-09-2008 05:24 AM
Yes.
There is an OpenG vi, which is called "Get All Controls Values" . This may help
10-09-2008 05:56 AM
Save default value is available, but only works with VI that don't run.
Otherwise you would have to save to file and restore from file. Multiple ways possible.
10-09-2008 07:55 AM
I discussed this topic in my Nugget on Using Control references here.
If the two off-the-shelf solutions cited there don't help you the rest of the Nugget will "let you roll your own".
Ben
10-11-2008 11:25 AM
Thanks to everyone for your help.
I just implemented a solution based on Ctrl Val.Set [Flat] and Ctrl Val.Get All [Flat] Invoke Nodes and it works perfectly.
BR, Jan