Example Code

TDMS Write Each Loop of Data in Separate Columns

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

Description

This example will teach you how to use TDMS functions to log DAQmx data from one channel while storing the data in a separate column.

How to Use

TDMS writes separate columns as channels. In order for each loop to store the data in a separate column, you need to set the loop as the channel by either

  • Wiring the loop counter index to the channel name input of the TDMS Write function
  • Building an array of loop values and wire the build array function into the channel name input of the TDMS Write function

Additional Information

Note: These TDMS channels do not refer to the same channels on the hardware in which you are acquiring data.

Related Links

 

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

Contributors