06-17-2015 04:09 AM - edited 06-17-2015 04:10 AM
Hi,
I understand your point of view and I agree that for many cases storing/loading data from files is the best option. Unfortunately there are few cases when it's better and faster to use default values. I repeat again - it's a fundamental feature, something like Cntr-Z in Windows to undo things.
Again we're drifting away from the main question - How to undo the default values. Is it useful or not is completely different question and may depend on what are you doing in this particular moment.
Best regards,
Luben
06-17-2015 04:20 AM - edited 06-17-2015 04:24 AM
Ok, as much as I know, you can not undo "set as default" action only right after you did it. If you save the file, or you start to do other modifications, you cannot undo this change.
edit: "I repeat again - it's a fundamental feature"
I just have to disagree, since it is very easy to avoid the necessity of such "feature", it is not fundamental neither important IMHO. You could also save your VI with different sets of "default" values, and using some source control to track changes, and undo any if necessery...
06-17-2015 04:23 AM
Negative answer is an answer. If we can't undo default values and we know it's not possible with current version of LabView it's still an useful information to understand how LabView works.
Thank you
06-17-2015 05:45 AM
Why should the setting of the default value be any different when it comes to the undo stack? What if I deleted a case structure and then an hour later decided I needed it again. Should I expect LabVIEW to be able to just undo my deletion of the case structure?
To fix your default value, you just pull up your backup code (hopefully in an SCC repository), see what the value used to be, put that value into your control, and set it to be the default.
As far as usefulness of actually setting the default of a control: Recommended and Optional inputs on the connector pane justifies having the feature.