Virus scan in progress. Please wait to download attachments.
This VI helps to understand how the various mechanical action of booleans works when applied to buttons in a timed loop.
This simple VI shows directly how various the various mechanical actions for boolean controls (buttons) work when put inside a loop. For ease of use, each type of mechanical action is mapped to two buttons - one for a mouse click and another mapped to a function (F1, F2, etc.) key. The loop timing can also be controlled to see its influence on the behavior of certain mechanical actions.
Boolean buttons and controls can be configured to have any of six different types of mechanical action: Switch When Pressed, Switch When Released, Switch Until Release, Latch When Pressed, Latch When Release, Latch Until Release. This can be done by right-clicking the button and selecting the proper Mechanical Action. There is a small pictogram on how each mechanical action affects the behavior of the control, but it can be easier to understand how each action works by simply putting them in a loop.
This VI implements each action and maps them to two buttons - one for a mouse click and one for a function key. By running the VI, you will be able to more easily understand how each mechanical action works in a loop, and how changing the loop timing affects certain mechanical actions.
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
Run the VI.
Press the various function keys or click the various buttons.
Change the loop timing and repeat step 2. (Notice the change in the "Latch" actions.)
Additional Information or References VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.