This example shows how to use the "SaveLoadControlValues.vi" as a SubVI to save and load controls and indicators of the main VI.
There are four options to choose how to save and load the controls/indicators:
- Specific controls and indicators
- Controls and indicators
- Controls only
- Indicators only
The example makes use of the "Set-" and "Get Control Value [Variant]" methods to read and write the control/indicator values. The data is saved in a datalog file for ease of use.
Please refer to the "SaveLoadControlValuesDemo.vi" for a demonstration of how to use the SubVI.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.