Overview
This example builds a 2D array of random numbers and writes this data to an Excel spreadsheet.
Description
After a 2D array is created, it is transposed so that instead of two rows of data, we have two columns of data. Then, it is written to an Excel file with the Append Table to Report VI.
Requirements
LabVIEW 2010 (or compatible), Report Generation Toolkit for Microsoft Office. Hardware: none.
Steps to Implement or Execute Code:
- Create a 2D array of random numbers
- Transpose the array so that the Excel spreadsheet will have 2 columns instead of 2 rows.
- Create a new Excel file
- Append the array data as a table into the Excel file
- Open and display the data in a maximized window
- Close the report and references to it
Additional Information or References:
**This document has been updated to meet the current required format for the NI Code Exchange.**