Hi Leif,
The "Run Save Defaults.vi" attached by me earlier is like a function. You drop this Vi in your Main VI and then wire the Path Information of the Main Vi to it. Make Sure you do this at the very end of your Main VI. You can use "This Vis Path" Fuction to do this. Now when your Main VI exits. The "Run Save Defaults.vi" takes over Saves defaults and exits.
The Best Part is you can customize these Vis the Way you Like.
For that Matter Even Win OS and Many other Programs Save user Chosen setting values in INI or REGISTRY files. That Method is reliable and rugged. The Registry Read and Write Methods are Faster than any file I/O. The OS gives these operation the top priority. So These are your Options to Choose. Believe me its not the prove
rbial "Devil's Alternative".
Regards,
Mache
Good Luck!
Mache