Set Channel Order in TDMS File in LabVIEW

Updated Apr 17, 2023

Environment

Software

  • LabVIEW

This article describes how a channel order within a TDMS file in LabVIEW can be preset regardless of which channel was written to the TDMS first. This will avoid having different column order for each file created for the same test.

  1. Create a template TDMS file in a separate VI which has the required column order and datatypes.

Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.
 
  1. In the main VI, use the Copy function to create a copy of the template TDMS file.

Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.
 
  1. Write the data to the newly created file as normal. The order in which the channels are written will not change the order of the channels in the TDMS file.