LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Item names in a strictly typed ring control do not update.

I have a custom control (strict typedef) that contains one ring control. When I added item names to the strict type def, they do not get updated on the instances where I am using it.
S G
Certified LabVIEW Architect, Certified TestStand Architect, Certified Professional Instructor
0 Kudos
Message 1 of 4
(2,906 Views)
Sudhir,
This is an expected behavior with strictly typedef ring constants. Instead of menu rings, you will want to use enums.
A Strict typedef keeps its cosmetic information on the front panel but not on the Block Diagram. The type of the ring does not depend upon its strings - like it does with enums.

See a similar post on this topic bellow:
Strict Type Def with Menu Ring does not automatically update linked constants

Zvezdana S.
National Instruments
Message 2 of 4
(2,906 Views)
Thanks for your response. However, I found the following sentence in the link LabVIEW custom controls ...

"A strict type definition forces almost everything about the control or indicator to be identical, including cosmetic properties such as size, color, and appearance. Strict type definitions also define other values, such as range checking on numeric controls and the item names in ring controls."

It turns out that the item names get updated if the ring control has sequential values associated with the items, but does not get updated if the values associated with the items are not sequential.

I chose text rings over enums
because I wanted the value associated with the items to be non-sequential for this particular control.

Once again, thanks for your response.

Regards,
Sudhir Gopinath
S G
Certified LabVIEW Architect, Certified TestStand Architect, Certified Professional Instructor
0 Kudos
Message 3 of 4
(2,906 Views)
Sudhir,
That quote does state that the strict type controls and indicators on the front panel will update in value and appearance. However, the change will not affect the constants on the block diagram.
I am still investigating the second issue about rings with the sequential values.
Zvezdana S.
National Instruments
0 Kudos
Message 4 of 4
(2,906 Views)