ReadWaitMode Enumeration
- Updated2026-02-03
- 1 minute(s) read
Specifies how reading from the task waits for samples to become available.
Syntax
Namespace: NationalInstruments.DAQmx
public enum ReadWaitMode
Remarks
Specifies how reading from the task waits for samples to become available. Use this enumeration to get or set the value of ReadWaitMode.
Members
| Name | Value | Description |
|---|---|---|
| WaitForInterrupt | 12523 | Check for available samples when the system receives an interrupt service request. This mode is the most CPU efficient, but results in lower possible sampling rates. |
| Poll | 12524 | Repeatedly check for available samples as fast as possible. This mode allows for the highest sampling rates at the expense of CPU efficiency. |
| Yield | 12525 | Repeatedly check for available samples, but yield control to other threads after each check. This mode offers a balance between sampling rate and CPU efficiency. |
| Sleep | 12547 | Check for available samples once per the amount of time specified in ReadSleepTime. |