Example Code

How can I load and save a generic configuration file for my VI?

Code and Documents

Attachment

Introduction

Here's an example on how to load a configuration file that has values to be used in the running of the VI and save the values at the end of running.  For example, this allows you to, as in this example, load calibration constants at the beginning of the VI.  You can then allow for these to be changed over the course of running the VI.  Finally, these new values will be written back to the configuration file.

CalibrationExample.bmp

Steps to Complete

First, you load a spreadsheet file and set the values to the controls.  The VI runs after this, during which the values can be changed.  Finally the values are saved back to the file.

CalibrationExample.png

Jared S.
Applications Engineering
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors