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.

Numeric case structures

Numeric case structures - LabVIEW Tutorial

From the course: Learning LabVIEW

Start my 1-month free trial

Numeric case structures

- [Facilitator] In addition to using a Boolean to select between a True or False case, LabVIEW's case structure can also use an integer value to select from two or more possible cases to execute. To demonstrate that, I'll change the Boolean button on this example, which currently selects whether or not to convert to Fahrenheit into a Numeric control. And I can do that by right clicking on it, going to Replace, the Numeric Palette and selecting Numeric Control. I'll rename that to Mode. Now, by default, LabVIEW creates the numeric control as an orange double data type but the case structure selector terminal turn blue indicating an integer value. And it has a little red dot showing that the floating point double value is being coersed down into an integer. To get rid of that coercion, I'll right click on the control, go down to Representation and select I32, to make it a 32 bit integer. Now, notice that the cases…

Contents