From the course: Learning LabVIEW

Unlock the full course today

Join today to access over 24,600 courses taught by industry experts.

Type def

Type def

- [Instructor] Enums often represent user options or possible states a program can be in, so it's common to use the same enum in multiple places throughout an application, perhaps even across multiple VIs. If I simply make a copy of this enum constant by selecting it and holding the Control key while I click and drag, that will allow me to select different values from it at other places in this program. I can make this constant Fahrenheit while this one is Celsius. However, if I ever need to modify the items for that enum, I'll need to individually change every copy I've made because they're not linked together. For example, let's say I need to expand this program to add support for another temperature scale. If I right-click on this enum, I can go down to Edit Items, I'll click Insert, and then type Rankine, which is another less common temperature scale. I'll click OK. And if I click the drop-down menu on this one,…

Contents