LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I tell if any value was made as default in xcontrol?

Hi there,

  Is that any way to tell if the "Make Current Value as Default" been executed or not in xcontrol?

0 Kudos
Message 1 of 3
(2,441 Views)

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,

Stephanie S.
Application Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,362 Views)

@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.

0 Kudos
Message 3 of 3
(2,347 Views)