08-30-2011 09:32 AM
The application I have built requires operator to add parameters in. Application however is required to start with the last values loaded as the default values. I could certainly achieve this by using configuration files and calling the subvi on closing application to save these parameters then loading the parameters by calling same vi. Configuration files are however strictly forbidden for this application. Is it possible to have "Make Current Value Default " button by the controls so the operator could set them as default during run time.
Kind Regards
Austin
08-30-2011 09:40 AM - edited 08-30-2011 09:41 AM
No.
This has been asked so many times before it's close to being ad naueseam. Default values are saved with the VI and require recompilation. Since an application cannot recompile itself, you cannot set the default values of controls at run-time.
If you cannot use configuration files (for whatever reason), then you can try some other mechanism, like the registry if you're in Windows, or perhaps even a cloud-based storage. Yeah, that's the ticket. Cloud-based storage for a LabVIEW application's controls' default values. Perfect.