LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving Panel States

Is there a way to Save Panel States and Recall them later, like the SavePanelState function in LabWindows?  Where I can save the values of all the controls on the panel, and then reload them at a later time.  I saw another message that talked about the Configuration File VI's, but I couldn't make sense of them.
 
One last little question...  Is there a way to make a control the active control on a panel, like the SetActiveCtrl function in LabWindows.  Where if I press Enter or Space Bar it will trigger the command button.
 
Thanks for your help.
0 Kudos
Message 1 of 5
(2,950 Views)
Hi,
For your first query,
will not setting the control values you want in a sub panel as default do the job?
To set controls to desired values, Go to menu -> operate-> choose option 'make current values default'
 
For your second query, if i understood, you want to syncronise some boolean button with a key board operation like pressing enter or space bar.
for this, rigth click on that control, go to advanced in the drop down menu, and select key navigation and assign the key you want.
 
hope this helps
 
Regards
Dev
 
 
 
0 Kudos
Message 2 of 5
(2,943 Views)

In addition to DevChander proposal, it is also possible to save and restore the control values programmatically, using property nodes as in the attached example.
The Configuration files vis are just convenient tools to save  data in a specific format allowing easy retrieval.
But if you only need to save and restaure all the panel state then the above solution should do.

Getting focus to a given control can also be done programmatically using the key focus property node.


 

Message Edité par chilly charly le 12-21-2005 05:49 AM

Chilly Charly    (aka CC)
Download All
0 Kudos
Message 3 of 5
(2,938 Views)
As for the configuration file VIs, if you download the OpenG file package, you will get VIs that save and load all the controls on the panel to the INI file using the configuration file VIs.

___________________
Try to take over the world!
0 Kudos
Message 4 of 5
(2,927 Views)
Thanks for all the answers, and being a newbie, thanks for the example!  Is it possible to give the save state a name and then recall it by that name?  I would like each user to modify the settings to their need, and then be able to save it off and then load it back up when they need to.
 
On the Active Control, in Labwindows I can make a command button the active control and then the user can press enter or the space bar and it presses the button for them.  I don't want to map any keys to the command button, just an easy way for the user to press the command button without using the mouse.
 
Thanks again!
0 Kudos
Message 5 of 5
(2,914 Views)