LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I Save as Default programmatically, maybe with SavePanelState

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 ?

Jan Nielsen
Freelance system analyst and LabVIEW programmer
0 Kudos
Message 1 of 7
(3,189 Views)

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?

0 Kudos
Message 2 of 7
(3,185 Views)

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 ?

Jan Nielsen
Freelance system analyst and LabVIEW programmer
0 Kudos
Message 3 of 7
(3,173 Views)

Yes.

There is an OpenG vi, which is called "Get All Controls Values" . This may help

0 Kudos
Message 4 of 7
(3,167 Views)

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.

Regards,
André (CLA, CLED)
0 Kudos
Message 5 of 7
(3,160 Views)

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 7
(3,141 Views)

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

Jan Nielsen
Freelance system analyst and LabVIEW programmer
0 Kudos
Message 7 of 7
(3,121 Views)