Configures logging to a .tdms file when the acquisition starts.

Syntax

Namespace: NationalInstruments.DAQmx

public void ConfigureLogging(string filePath, TdmsLoggingOperation loggingOperation, LoggingMode loggingMode)

Remarks

When you enable TDMS logging, NI-DAQmx streams the data acquired to the specified file once the acquisition starts. The data written on the file is in TDMS file format, and the driver also creates a TDMS index file. The name of the TDMS channel group that the driver creates is the same as the task name. Refer to TDMS Streaming for more information.

Parameters

NameTypeDescription
filePathstring

The path to the .tdms file to which you want to log data. If you use this method to create a new file, the file extension of the filename you specify in filePath  must be .tdms. Otherwise, this method automatically appends .tdms to the filename you specify. If you use this method to open or update an existing file, you do not have to ensure that the file extension is .tdms.

loggingOperationTdmsLoggingOperation

A TdmsLoggingOperation value that specifies how to open the .tdms file.

loggingModeLoggingMode

A LoggingMode value that specifies how to log data.