Unable to Connect Buttons via Global Variables in LabVIEW

Updated Dec 4, 2023

Reported In

Software

  • LabVIEW

Issue Details

I have a subVI that has Control Buttons on the Front Panel and I want to control them using Global References.
For that purpose, I have created a reference from a Button and created its corresponding Global Variable Usually,

I prefer to use Switch Until Released and Latch Until Released as Mechanical Actions, but when I press the buttons from a newly created VI, they remain pressed. How can I resolve this issue?

Solution

If you are using Global Variables with references, the mechanical actions Switch Until Released and Latch Until Released will not work properly.

Use instead the other 4 mechanical actions for buttons (Switch When Pressed, Switch When Released, Latch When Pressed, Latch When Released).

Right-click on a button, go to the Mechanical Action section, and select them from the options mentioned above:

image.png