06-12-2017 12:31 PM - edited 06-12-2017 12:31 PM
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.
Solved! Go to Solution.
06-12-2017 12:39 PM - edited 06-12-2017 12:39 PM
Are you sure the labels are shown and not the caption?
And are you doing "apply all"?
Ben
06-12-2017 12:50 PM
@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...
06-12-2017 12:57 PM
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??
06-12-2017 01:42 PM - edited 06-12-2017 01:47 PM
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...
06-12-2017 02:29 PM
Just do a find and replace
06-12-2017 02:44 PM
Thanks, today I have learned some new stuff 🙂
06-12-2017 09:48 PM
@Blokk wrote:
Thanks, today I have learned some new stuff 🙂
That can happen around here