NI-DAQmx .NET Framework 4.5 API Reference

DaqStream.ReadAllAvailableSamples Property

  • 更新时间2023-02-21
  • 阅读时长1分钟
DaqStream.ReadAllAvailableSamples Property
Specifies whether subsequent read operations read all samples currently available in the buffer or wait for the buffer to become full before reading. NI-DAQmx uses this setting for finite acquisitions and only when the number of samples to read is -1. For continuous acquisitions when the number of samples to read is -1, a read operation always reads all samples currently available in the buffer.

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

Syntax

public bool ReadAllAvailableSamples { get; set; }
Public Property ReadAllAvailableSamples As Boolean
	Get
	Set

Property Value

Type: Boolean
Specifies whether subsequent read operations read all samples currently available in the buffer or wait for the buffer to become full before reading. NI-DAQmx uses this setting for finite acquisitions and only when the number of samples to read is -1. For continuous acquisitions when the number of samples to read is -1, a read operation always reads all samples currently available in the buffer.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

See Also