Example Code

Write TDMS Header for TMD Excel Plug-In

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

Code that can be used as a SubVI to set different values to the specified properties.

 

Description

You can open a TDM or TDMS file in Microsoft Excel using the TDM Excel Add-In for Microsoft Excel.  The TDM file viewer is configured by default to have several base properties Title, Author , Date/Time, and Description. If you want to use these default property names you can just use this subVI in your TDMS file IO chain to write all of the header value into the file.

 

You can also turn off the base properties on the Excel veiwer by going to Configure TDM Importer. You can then remove, modify or create your own base properties to be displaied.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Add this VI to the TDMS to the file IO Chain
2. Connect the TDMS File input and output
3. Connect the time reference

 

Additional Information or References

Write TDMS Header.png

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

Comments
SujanReddy
Member
Member
on

Hello

Regarding Saving Data in TDMS file, I would like to know if it is possible to save data similar to scan interface. I tried to store the read data from FIFO and stored it to an array using shift register. I am trying to save this array in to a TDMS file directly