ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

NI-DAQmx .NET Framework 4.5 API Reference

WriteWaitMode Enumeration

  • 已更新2023-02-21
  • 閱讀時間為 1 分鐘
WriteWaitMode Enumeration
Specifies how writing to the task waits for space to become available in the buffer.

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

Syntax

public enum WriteWaitMode
Public Enumeration WriteWaitMode

Members

  Member nameValueDescription
Poll12524Repeatedly check for available buffer space as fast as possible. This mode allows for the highest sampling rates at the expense of CPU efficiency.
Yield12525Repeatedly check for available buffer space, but yield control to other threads after each check. This mode offers a balance between sampling rate and CPU efficiency.
Sleep12547Check for available buffer space once per the amount of time specified in WriteSleepTime.

Remarks

Specifies how writing to the task waits for space to become available in the buffer. Use this enumeration to get or set the value of WriteWaitMode.

See Also