Example Code

Save Front Panel Array to Arbitrary File using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This VI enables the user to save the contents of a front panel array to a selected file.

 

Description

This is a simple VI that saves the contents of a front panel array to a selected file.

The information can be recalled into the array at any point using the open function and different files can be selected to save to or open from during run-time.

 

Requirements

  • LabVIEW Base Development System 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the program.
  2. Select file path. User can choose the file name arbitrarily.
  3. Press the Save button.
  4. Notice that the file from step 2 is created and updated with the data of the front panel array.
  5. User can recall the data to the front panel array by pressing the Open button.

 

Additional Information or References

VI Block Diagram

SnapCrab_Simple save and open array 2012 NIVerifiedvi Block Diagram_2017-7-25_22-1-8_No-00.png 

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Jack. W
Applications Engineer
National Instruments

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