LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Typedef automatic update

I have created a typedef containing only a text ring control. In a VI, I have several instances of this control on the block diagram. When I first placed them, the text rings contained correct values. When I go back and change the typedef by adding an additional text item, they do not update. I have checked "auto-update from typedef" for each instance.
0 Kudos
Message 1 of 8
(5,113 Views)
> I have created a typedef containing only a text ring control. In a
> VI, I have several instances of this control on the block diagram.
> When I first placed them, the text rings contained correct values.
> When I go back and change the typedef by adding an additional text
> item, they do not update. I have checked "auto-update from typedef"
> for each instance.

A typedef will update when the datatype changes, but adding a string to
the ring doesn't affect its type. You have several other ways of doing
this. Strict typedefs update when any change is made, and enumerations
have the strings as part of the type, so either of those approaches will
do what you want.

Greg McKaskle
0 Kudos
Message 2 of 8
(5,108 Views)

I'm having the same trouble using an enum constant in LabVIEW 8.2.1. Is this a bug or a configuration issue?

Chuck Lippmeier

0 Kudos
Message 3 of 8
(4,794 Views)
You just added to a thread that is over 5 years old (!!!) and already had a clear answer.
 
Did the old answer help you at all?
 
If not, please provide more details on the exact nature of your problem and maybe even attach a simple example that demonstrates the issue. 
0 Kudos
Message 4 of 8
(4,779 Views)
Greg's response indicated that enums should work one way and I'm seeing them work another. The post is 5 years old and I'm responding to it because I searched for the answer before posting. I've run into others before that would have complained if I hadn't researched my problem before posting? I guess I can't please everyone. Since I found this posting to be the closest to my problem I responded to it. I agree that the answer addressing ring controls was very clear. If you read it and my question you would know that Greg suggested using enums to solve the problem. I'm using enums and still have the problem. I will be investigating this further. It is likely in my mind that the problem is a bug in 8.2.1. I have not tried this in 8.5 but the enum typedef works as expected in 7.1. I know because I've used it often. I'll try it in 8.5 and 7.1 and on multiple computers. However, I just thought that someone would know the answer before I put in all that effort. I didn't post an example because the problem is self explantory and preparing an example would take more effort than simple isolating the problem to a version and computer. Besides I'm not asking anyone to solve my problem. I'm only asking whether anyone reading this has seen it before and if so, what they found out. If I end up finding that the problem only exists in 8.21 but does not exist in 8.5 or that it only exists on the one computer. I'll have my answer. However, if it exists in 8.5 then I expect to publish a bug.
Chuck Lippmeier, CLD, LabVIEW developer since Beta 0.96
Message 5 of 8
(4,773 Views)

Thanks for the extra details, now the description makes a bit more sense. 🙂

Hopefully somebody will be able to provide an answer. Good luck! 

0 Kudos
Message 6 of 8
(4,765 Views)
Superb post!
- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 7 of 8
(4,752 Views)

Hi Chuck,

I created a enum custom control in LabVIEW 8.2.1, and set it to strict type def..  I then added another item to the enum custom control, and it updated all of my other controls which were linked to it successfully.  I think the confusion may be understanding the difference between type def. and strict type def., which was explained earlier in this forum.  I hope this helps, please let me know if I am leaving something out.  Thanks!

Meghan M.

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