From the course: Learning LabVIEW

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Enums

Enums - LabVIEW Tutorial

From the course: Learning LabVIEW

Start my 1-month free trial

Enums

- [Instructor] Case structures are often used with a special type of integer called an enumerator or enum, for short. The enum contains a list of string labels which correspond to integer values. They make programs easier to read when using case structures to select among several possible cases. In the example shown here, rather than having to just know that number zero indicates the case to convert to Celsius, we can use a more descriptive label, Celsius. You can create a new enum constant on the block diagram by right clicking to bring up the functions pallette. Going to the numeric menu and selecting enum constant. It makes sense that the enum would be stored in the numeric palette because at its core it represents a number. And you can tell that it's an integer value because the enum constant is blue. I'll click and place it on my block diagram. And to give this newly create enum some possible values, I'll right…

Contents