LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Holding default values in CVI application

Hello -
 
I am writing a LabWindows/CVI application, which controls an USB Digital I/O Board.  I have set numeric user interfaces to a default values.  However, when a user runs the application, he/she may need to change the them.  How can I hold the values the user entered so the next time the user runs the application it was as they used it last?
 
Best,
Matthew
0 Kudos
Message 1 of 2
(2,863 Views)
Hello Daniel.

Probably the simplest approach is to utilise the User Interface library functions SavePanelState() and RecallPanelState(), which will save and restore (respectively) the control values and other settings for a panel, using a binary disk file.

Alternatively, you could use the Inifile instrument, which "...contains functions for storing and accessing hierarchical configuration information using .ini-style files or Windows Registry Keys." This would require extra programming, but has the advantage of storing the values in a text file which can be read and modified in other applications.

Regards,
Colin.

0 Kudos
Message 2 of 2
(2,855 Views)