04-28-2011 03:17 PM
Is there an easy way to save/load defaults between runs of a VI?
I'd hate to have the users re-input data that doesn't change frequently. Something like "Start with last state", or do I have to write all the defaults to a file, then load them?
Thanks
04-28-2011 03:25 PM
See here for an example - https://decibel.ni.com/content/docs/DOC-15349
04-28-2011 03:53 PM
Travis.Ayres@ngc.com wrote:
Is there an easy way to save/load defaults between runs of a VI?
I'd hate to have the users re-input data that doesn't change frequently. Something like "Start with last state", or do I have to write all the defaults to a file, then load them?
Thanks
Yes, you have to save the values you want persited to a file and load them during initialize. Resetting default values for the vi requires it to recompile (so you can't do it in run mode) but there are lots of great configuration utilities and examples in the community.
04-29-2011 05:24 AM
Here's how I'd do it.