Example Code

Build a 6xN Data Array and Output to CSV

Code and Documents

Attachment

Overview

This example VI demonstrates the method of building an array and write it to Excel.

 

Description

This example will take generated data (in this case random numbers) and build it into an array of finite columns and undetermined length. It gives the user the opportunity to manually delete individual elements and then when the program is done, it will write to a .csv file that can be opened from Excel.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download the attached folder to your computer
  2. Open the VI " Build Array and Output to Excel 2012 NIVerified.vi".
  3. Edit code to generate determined data or leave it as random numbers.
  4. Run the VI.

 

Additional Information or References
VI Snippet

Block Diagram.PNG

 

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

 

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