Example Code

Appending Data to Excel using MathScirpt fwrite_xls Command

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 MathScript RT Module
  • LabVIEW

Code and Documents

Attachment

Overview

Coding that exemplifies how to continuously append data to an Excel file using the MathScript Node.

 

Description

This code will open an Excel file and use the fwrite_xls command to append at the end of the file by using the MathScript Node. This can be another option to log data into an Excel file.

 

Requirements
1. LabVIEW 2012 (or compatible)
2. MathScript RT Module

 

Steps to Implement or Execute Code
1. Run the VI
2. When desired, use the Stop button to finish execution

 

Additional Information or References

Capture.PNG

Stephanie A.
Americas Marketing Manager
National Instruments

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