LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Make the curren value default using control button

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

0 Kudos
Message 1 of 2
(2,279 Views)

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.

Message 2 of 2
(2,272 Views)