VeriStand UI Manager Using Variables in Action Button Argument

Updated May 4, 2023

Reported In

Software

  • VeriStand

Issue Details

I would like to pass a reference to a variable into an argument of an action button in my VeriStand UI Manager user interface, but I can't seem to get that to work. I've gotten constants to behave as expected, but it doesn't seem to be interpreting variables properly. Is there a way to do this?
 

Solution

You cannot pass a variable into an argument of an action button. However, there are a couple of workarounds.

If you have access to the source code of your EXE, and the EXE is built using LabVIEW or a .NET language, you can add functionality in your code to access the VeriStand Gateway on your computer to reference the proper variables.

If you either don't have access to the source code or the EXE is not built using LabVIEW or a .NET language, you can write a wrapper EXE that accesses the VeriStand Gateway, obtains the values of the variables you need, and passes those as inputs to your main EXE.

If you would like information on how to access the VeriStand Gateway from LabVIEW or C#, see the Related Links section below.

Additional Information

Currently there is no functionality to edit or add VeriStand UI Manager controls or indicators like in the VeriStand Workspace, so you can't create a custom control to accept variables as arguments for an action button.