07-07-2009 02:39 AM
07-07-2009 03:27 AM
07-07-2009 05:41 AM
I do that all the time using Open-G tools
Attached some screenshots to load settings at the start of the software, save settings just before quitting the software and an example of a Settings cluster, just to show you that you can save much more than one knob at the time
Of course you have to download the Open-G tools but they are very usefull
Thanks Jim K !
07-07-2009 06:17 AM
I do this all the time.
Use the READ KEY and WRITE KEY vis from FILE I/O - CONFIG FILE VIs.
Of course, you have to OPEN CONFIG FILE first and CLOSE CONFIG FILE afterwards.
I have a ton of such settings there.
I open the file when the program comes up, and close it when shutting down.
When a particular window comes up, I use READ KEY to get the previous value of something.
When the window closes, I use WRITE KEY to store the current setting.
That makes the window come up the next time just like they left it.
It stores values in an INI file in the form "Channel Selector Knob = 13"
You provide the name (key) you want to use and it stores it.
SUGGESTION: use a typedef to store all your keynames. Use ONE and ONLY ONE place to turn the typedef into a string for the actual key. Otherwise you risk misspellings, mis-capitalizations, etc.
Blog for (mostly LabVIEW) programmers: Tips And Tricks