Example Code

TDMS Properties: Test the Max Number of Properties Allowed

Code and Documents

Attachment

 

Overview
The purpose of this VI is to demonstrate the limitation on the number of TDM properties a TDMS file can have.


Description
Some of the Storage Express VIs in LabVIEW, found in File I/O >> Storage/DatePlugin, place a limitation on the number of TDMS properties (27 or less) that can be used with a TDMS file. This example is designed to show that using the lower-level TDMS VIs allow much more flexibility in terms of how many properties can be specified for the TDMS file.

The VI consists of a basic TDMS Open, TDMS Set Properties, TDMS Get Properties, and a TDMS Close. The properties are generated into an array by a loop at the beginning of the VI's execution and sent to the TDMS Set Properties, and then read back later by the Get VI to be displayed on the front panel.
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Open the VI and select TDMS file by File Path
  2. Change the "Number of TDM Properties"
  3. Click Run

Additional Information or References

 5-319.png

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

 

 

Ryan P.
CLA

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