04-10-2021 10:46 AM - edited 04-10-2021 10:51 AM
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"
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.
05-07-2024 02:51 AM
^ Now that seems like a bot.