Example Code

DAQmx TDMS Data Logging - TDMS File Splitting

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.


  • Data Acquisition (DAQ)


  • LabVIEW


  • NI DAQmx

Code and Documents



This example works to split the data between multiple filesas Comb filters when logging data using DAQmx TDMS logging.



When logging data using DAQmx TDMS logging, splitting the data between multiple files can make file sizes more manageable. TDMS file splitting was first supported in DAQmx 9.3. TDMS file splitting is enabled with the use of a property node.




  • LabVIEW 2012 or compatible
  • NI-DAQmx 9.5.5 or compatible


  • NI Multifunction DAQ Device


Steps to Implement or Execute Code

  1. Configure the parameter for the right channel and device.
  2. Connect your hardware appropriately.
  3. Run the VI.


Additional Information or References


TDMS File Splitting.png


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

Eric Liauw
Senior AE Specialist - Automated Test | CLD | CTA
National Instruments

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