DaqStream.Timeout Property
- Updated2023-02-21
- 1 minute(s) read
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: Int32The time in milliseconds.
Exceptions
Exception | Condition |
---|---|
DaqException | The 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.