LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Label of a Strict TypeDef control

Solved!
Go to solution

Hmm, I guess I am just tired now. So I am not sure if this is the normal behavior or not.

Scenario: I use a Strict Typedef control (numeric U32) in several VIs inside a lvlib, inside a lvproject. I thought if I open up the Strict Type Def control, and change its label, it should change the labels of all of its instances. But this dos not happen.

 

LV2017.

0 Kudos
Message 1 of 8
(4,334 Views)

Are you sure the labels are shown and not the caption?

 

And are you doing "apply all"?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 8
(4,327 Views)

@Ben wrote:

Are you sure the labels are shown and not the caption?

 

And are you doing "apply all"?

 

Ben


Yes, labels.

LV does not ask me to "apply all?". I open the strict typedef control, change the label, then save it and close it. That is all. And the labels do not update anywhere on the Front Panels of the VIs...

0 Kudos
Message 3 of 8
(4,313 Views)

I can reproduce the behavior, see the attached zipped project (LV2017). Change the label of the strict typdef, then save it and close it. The instances are not updated.

Is there some option in the menu, where I have to explicitly force it??

0 Kudos
Message 4 of 8
(4,304 Views)

Ok, I guess this is the expected behaviour. So strict type defs do not carry label names, neither default values, etc...

 

http://digital.ni.com/public.nsf/allkb/1B04FD6A11E6F17286256C6300588BFA

 

A Strict Type Definition Control forces almost everything about the control to be identical, including its size, color, and appearance. Strict Type Definitions are more restrictive and, unlike Type Definitions, they define values for properties such as range checking on numeric controls and item names on ring controls. The only flexibility to a Strict Type Definition is the name, description, and default value, which can be different for each instance of the control.

 

Edit: would be nice to have a "VERY Strict Type Definition" option 😄 But I guess there is a good reason why there is no...

edit2: OK, for a label name it is a really bad idea to have controls with identical names in the SAME VI. What I wanted, to quickly change the labels of this strict control in several VIs, but only a single instance was in each VI. I think in such case, I can just make a VI which runs through my VIs, and changing the label names of these controls via reference...

0 Kudos
Message 5 of 8
(4,288 Views)
Solution
Accepted by topic author Blokk

Just do a find and replaceCapture.png

Capture.png


"Should be" isn't "Is" -Jay
Message 6 of 8
(4,273 Views)

Thanks, today I have learned some new stuff 🙂

Message 7 of 8
(4,266 Views)

 


@Blokk wrote:

Thanks, today I have learned some new stuff 🙂


That can happen around here


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 8
(4,240 Views)