NI-DAQmx .NET Framework 4.0 API Reference

ReadWaitMode Enumeration

  • Updated2023-02-21
  • 1 minute(s) read
ReadWaitMode Enumeration
Specifies how reading from the task waits for samples to become available.

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

Syntax

public enum ReadWaitMode
Public Enumeration ReadWaitMode

Members

  Member nameValueDescription
WaitForInterrupt12523Check 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.
Poll12524Repeatedly check for available samples as fast as possible. This mode allows for the highest sampling rates at the expense of CPU efficiency.
Yield12525Repeatedly check for available samples, but yield control to other threads after each check. This mode offers a balance between sampling rate and CPU efficiency.
Sleep12547Check for available samples once per the amount of time specified in ReadSleepTime.

Remarks

Specifies how reading from the task waits for samples to become available. Use this enumeration to get or set the value of ReadWaitMode.

See Also

Log in to get a better experience