LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find where local variable is defined?

Solved!
Go to solution

The front panel control or indicator is the "definition" of a local variable. The value which is in that control/indicator when you open the VI is the value it is defined to.

To define a initial value for a control/indicator
- Write a desired value in the control/indicator

- Right click on control/indicator

- From the popup menu select "Data Operations -> Make Current Value Default"

RolfO_0-1618069705484.png

 

Save VI and close VI.
Next time you open the VI the control/indicator will be show the defined value.

A global variable is defined in the same way, but the global variable will be represented by a control or indicator on the panel of a VI without block diagram.


If you create sub-vi's its also valuble to know how to set the default value of controls/inputs you may want to not always need to wire.

Message 11 of 12
(346 Views)

^ Now that seems like a bot.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 12 of 12
(165 Views)