Controls or Indicators Lose the Last Value I Entered When I Reopen the VI

Updated May 24, 2018

Reported In

Software

  • LabVIEW

Issue Details

I have a Control or Indicator which I need to have a specific value when I open my program, but every time I close and open my program it goes back to a default value and loses the value I entered. Can I set the default value of a Control or Indicator?

Solution

Yes. There are several methods to set the default value of a Control or Indicator:

Context Menu: use this method to set the default value of individual Controls or Indicators.
  1. Enter the desired default value.
  2. Right-click the Control or Indicator in the Front Panel or its Block Diagram Terminal.
  3. Select Data Operations > Make Current Value Default.
Edit Menu: use this method to set the default value for one or more Controls or Indicators.
  1. Enter the desired default value for one or more Controls or Indicators.
  2. If you want to set the values for just one or a group of objects, select them. Otherwise, make no selection.
  3. If no objects are selected, select Edit >  Make Current Values Default to set the default values for all the Controls and Indicators. If a specific or a group of elements are selected, select Edit > Make Selected Values Default to change the default value for the selected items only.
Programmatically: refer to Set the Default Value of a Control in a VI Programmatically for details.

Additional Information

The  Make Current Values Default entry in the Edit menu automatically changes to Make Selected Values Default when one or more components are selected.

If you want to set the default values for an Executable, refer to How Do I Change Default Values in a LabVIEW Executable?.

WAS THIS ARTICLE HELPFUL?

Not Helpful