12-31-2013 10:26 PM
Hi there,
Is that any way to tell if the "Make Current Value as Default" been executed or not in xcontrol?
01-02-2014 01:04 PM
Hello,
A quick check to see if your default value has been set is to change the control value, and then right click and select Data Operations >> Reinialize to Default Value. You could also right click on the control and create a property node to read the value in to an indicator.
If you still have questions, please post a screenshot of your code to help give a better idea of what you are working on!
Thanks,
01-02-2014 01:42 PM
@dragondriver wrote:
Is that any way to tell if the "Make Current Value as Default" been executed or not in xcontrol?
Do you actually want to know if the method has executed or simply if the current value corresponds to some default value (as defined by you)? (Note that each instance of the Xcontrol can have different default values as saved with the host VI).
Please give a bit more details on what you are trying to do. Thanks!
If you want to compare with some global default value, you could add a diagram constant with "default values" to the x control and compare if the current values are the same, for example.