Boolean Controls and Indicators
- Updated2026-05-29
- 4 minute(s) read
Use Boolean controls and indicators located on the Boolean subpalettes to enter and display Boolean (TRUE/FALSE) values with objects such as buttons, switches, and LED lights.
The following list describes the common use cases of Boolean controls and indicators on the Controls palettes in LabVIEW.
Mechanical Actions of Boolean Controls
In LabVIEW, Boolean controls have a configurable mechanical action that lets them resemble the behavior of physical instruments, such as oscilloscopes and multimeters.
There are two general categories of mechanical action: switch and latch. Switch and latch actions are similar in that they both change the value of the Boolean control. The actions differ in how the value of the control reverts to the previous value.
To define the mechanical action for a Boolean control, right-click the control and select the behavior from the Mechanical Action menu. Table 3. Boolean Control Mechanical Actions provides more information about the three types of switch behaviors and latch behaviors:
| Behavior | When to Use | Example |
|---|---|---|
| Switch When Pressed |
|
Light switch: The light turns on as soon as you switch the control. The light stays in that state until you switch the control again. |
| Switch When Released |
|
Checkbox: The checkbox changes its value only after you release the mouse button. This gives you the ability to reconsider your choice after clicking by moving the cursor away from the checkbox before releasing the mouse button. |
| Switch Until Released |
|
Doorbell: The bell rings as soon as you press the button. The bell continues to ring until you release the button. |
| Latch When Pressed |
|
Emergency stop button: The button stops the system as soon as you press the button. The button resets as soon as the system reads the change in value, allowing for the button to be pressed again. |
| Latch When Released |
|
Close button: The button closes the program only after you release the mouse button and the application reads the change in value. This gives you the ability to reconsider your choice after clicking by moving the cursor away from the button before releasing the mouse button. |
| Latch Until Released |
|
Robot movement control: The movement control informs the system of the robot to move the robot while the control is pressed down. Once the control is released, and the system of the robot has read the control, the robot goes back to its previous state of non-movement. |