Unable to Control Buttons via Global Variables in LabVIEW

Updated Dec 4, 2023

Reported In

Software

  • LabVIEW

Operating System

  • Windows
  • Mac OS X

Issue Details

I have a subVI that has buttons in it and I want to control them via global references. For that purpose, I have created a reference of a button and the corresponding global variable. Usually, I prefer to use "Switch Until Released" and "Latch Until Released" mechanical actions of the button, 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. Instead of it use the other 4 mechanical actions of the button ("Switch When Pressed", "Switch When Released", "Latch When Pressed", "Latch When Released").
Right-Click on the button, go to the Mechanical Action section and select one of the listed above.
image.png