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

Syntax

Namespace: NationalInstruments.DAQmx

public int Timeout { get; set; }

Remarks

The time in milliseconds.

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.

Exceptions

TypeDescription
NationalInstruments.DAQmx.DaqException

The NI-DAQmx driver returned an error.