Example Code

Adding Header Information and Column Labels to a Spreadsheet File in LabVIEW

Code and Documents


Download All

This example VI generates a 2-D array of random numbers with the number of data points in each column being specified by the user. In addition, the first column of the array specifies the data point number in each row, starting from 1 to the number of data points the user has specified.

Upon generation of the 2-D array of values, the array will be written to a spreadsheet file and the user will be prompted for a filename and path. The example automatically appends two lines of header information and column labels to the data values so that the spreadsheet file will contain header information and column labels in addition to the actual data.

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