NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

DaqStream.LoggingSamplesPerFile Property

  • Updated2023-02-21
  • 1 minute(s) read
DaqStream.LoggingSamplesPerFile Property
Specifies how many samples to write to each file. When the file reaches the number of samples specified, a new file is created with the naming convention of <filename>_####.tdms, where #### starts at 0001 and increments automatically with each new file. For example, if the file specified is C:\data.tdms, the next file name used is C:\data_0001.tdms. To disable file spanning behavior, set this attribute to 0. If LoggingFilePath is changed while this attribute is set, the new file path takes effect on the next file created.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302

Syntax

public long LoggingSamplesPerFile { get; set; }
Public Property LoggingSamplesPerFile As Long
	Get
	Set

Property Value

Type: Int64
Specifies how many samples to write to each file. When the file reaches the number of samples specified, a new file is created with the naming convention of <filename>_####.tdms, where #### starts at 0001 and increments automatically with each new file. For example, if the file specified is C:\data.tdms, the next file name used is C:\data_0001.tdms. To disable file spanning behavior, set this attribute to 0. If LoggingFilePath is changed while this attribute is set, the new file path takes effect on the next file created.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

See Also

Log in to get a better experience