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.

Boolean case structures

Boolean case structures - LabVIEW Tutorial

From the course: Learning LabVIEW

Start my 1-month free trial

Boolean case structures

- [Instructor] When you need your LabView program to execute one of several possible actions, based on its current state or a condition, you can use a case structure, which allows you to selectively execute sections of code. It's the graphical programming equivalent to if-else or switch statements in text-based languages. The case structure holds two or more sections of code called sub-diagrams and selects one of them to execute based on the value of a Boolean, integer, string, or enum input. An enum is a special type of integer that we'll cover later in this course. To demonstrate how to create and use a Boolean case structure, I'll modify this program which converts an input value from Celsius to Fahrenheit to allow the user to decide whether or not to convert that input value. The case structure can be found on the functions pallet under the structures menu. Case structure is here. And to place it, you simply click and…

Contents