LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Save Panel: control values, variable values and attribute

Hello,

I am using CVI 2010.

I want to save the state of my program.

So far with the SavePanelState and RecallPanelState, i was able to save the state of control elements on the GUI (buttons, switches, sliders...) but the attribute of them weren't restored after RecallPanelState.

And i have some variables, which are running in the back ground of the program, and their values weren't saved with the SavePanelState as well.

Is there a easy way, to save everything (state of GUI, Attribute of GUI element and background-variables) like in LabView ?

0 Kudos
Message 1 of 3
(2,984 Views)

help file zu SavePanelState:

 

Saves the current values of all controls on a panel.

This function also saves the following control attributes:

  • Label/value pairs of the list-type controls, and their indices
  • Minimum, maximum, and increment values for numerics
  • List box checkmark state values

 

Es werden also bis auf die erwähnten Ausnahmen nur Werte abgespeichert, nicht Attribute.

 

Um auch bestimmte Attribute abzuspeichern bzw. wiedereinzulesen, kann man die Befehle aus der inifile Bibliothek verwenden, das muss man dann aber selber programmieren, Attribut für Attribut... 

 

 

Marco Brauner NIG

0 Kudos
Message 2 of 3
(2,974 Views)

ts ts, Marco, don't expect German language skills from everyone Smiley Wink

 

Here is the English equivalent:

 

Chocobombo, you will need to save / restore most attributes yourself; for this reason, you could use the commands from the inifile library.

(By the way, this topic has been discussed several times in this forum)

0 Kudos
Message 3 of 3
(2,971 Views)