From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Low Level TDMS Data Streaming Across Multiple Files using LabVIEW

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
This example demonstrates how to save data in multiple TDMS files. 


Description

On occasion, it may be necessary or desirable stream data from an acquisition to multiple smaller files rather than just one.  This short example demonstrates how, using the low level TDMS file functions, data can be written across multiple files.  By utilizing the loop counter, a new file for data streaming is created every 1000th iteration. 


Requirements

  • LabVIEW Base Development System 2012 (or compatible)


Steps to Implement or Execute Code

  1. Fill in the “File Name” control.
  2. Run the VI. 
  3. TDMS files are created in the application directory.

 

Additional Information or References
VI Block Diagram

 b.png

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

Cole R.
National Instruments
Software Engineer

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