Boolean controls have six types of mechanical action that allow you to customize Boolean objects to create front panel windows that more closely resemble the behavior of physical instruments.
Note When you assign a keyboard shortcut to the mechanical action of a Boolean control, the keyboard toggles the value. For example, when you assign a keyboard shortcut to a Boolean control and set the keyboard shortcut to one of the latching mechanical actions, the button unlatches when read. |
Complete the following steps to change the mechanical action of a Boolean control.
Note You cannot use any latch action for objects with a local variable. If you configure your Boolean value with a latching mechanical action, the Value property and the Value (Signaling) property return an error when the VI is in a non-idle state, such as when the VI is running or reserved to run. Due to race conditions that can occur when you have a Boolean value with latching mechanical action, you cannot programmatically read Boolean values that are set with a latching mechanical action. |
Refer to the Mechanical Action VI in the labview\examples\Controls and Indicators\Boolean directory for an example of Boolean control mechanical actions.