LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I load a control's values from those stored in it's typedef?

How do I load a control's values from those stored in it's typedef? I have a control that is linked strict to a typedef. I open the typedef and change the values and specify save as default, and then I would like to have the control (an instance of the typedef) to have it's values revert to those of the typedef default values. Is there a way to do this?
0 Kudos
Message 1 of 6
(2,782 Views)

What kind of control are you talking about?

 

Mike..


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 6
(2,774 Views)

I probably should have mentioned that the control is really a cluster of controls, including many different control types. The control in question is a string control (string constant->change to control).

0 Kudos
Message 3 of 6
(2,770 Views)

The problem is that the default value for a control is not saved as part of the typedef - or at least a part of the typedef that is enforced. As a result, if you change the default for a typedef, new instances of the typedef will show it but existing instances will not be changed.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 6
(2,768 Views)

So I have an enhancement request: I suggest adding to every control's "right-click" menu:

 

DataOperations->Reinitialize to typedef default

 

and have it greyed out for controls which have no associated typedef.

0 Kudos
Message 5 of 6
(2,764 Views)

Hi DEppAtNGC,

 

Thanks for the idea. I have filed a product suggestion with R and D with your recommendation.

Jeff | LabVIEW Software Engineer
0 Kudos
Message 6 of 6
(2,737 Views)