NI-DAQmx .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents

DaqStream.Timeout Property

DaqStream.Timeout Property

DaqStreamTimeout Property

Gets or sets the amount of time in milliseconds to wait for reads or writes to complete.

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

Syntax

public int Timeout { get; set; }
Public Property Timeout As Integer
	Get
	Set

Property Value

Type: Int32
The time in milliseconds.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

If you set this property to -1 (or Infinite), read or write operations never time out.

This property applies to synchronous and asynchronous reads and writes. A write is considered complete when all of the written samples have been transferred to the task buffer. Writes do not wait until the written samples have been generated by the device.

See Also

Was this information helpful?