NI-DAQmx .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents
Product DocumentationNI-DAQmx .NET Framework 4.0 API ReferenceDigitalSingleChannelReader.EndMemoryOptimizedReadSingleSampleMultiLine MethodCurrent page
Table of Contents

DigitalSingleChannelReader.EndMemoryOptimizedReadSingleSampleMultiLine Method

DigitalSingleChannelReader.EndMemoryOptimizedReadSingleSampleMultiLine Method

DigitalSingleChannelReaderEndMemoryOptimizedReadSingleSampleMultiLine Method

Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadSingleSampleMultiLine(AsyncCallback, Object, Boolean) and retrieves the read samples.

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

Syntax

public bool[] EndMemoryOptimizedReadSingleSampleMultiLine(
	IAsyncResult asyncResult
)
Public Function EndMemoryOptimizedReadSingleSampleMultiLine ( 
	asyncResult As IAsyncResult
) As Boolean()

Parameters

asyncResult
Type: SystemIAsyncResult
An IAsyncResult that represents an asynchronous call started by calling BeginMemoryOptimizedReadSingleSampleMultiLine(AsyncCallback, Object, Boolean).

Return Value

Type: Boolean
A 1D array of Boolean samples from the task. Each element of the array corresponds to a digital line in the channel.

Exceptions

ExceptionCondition
ArgumentException
  1. If data is or is uninitialized;
  2. asyncResult is or is not an instance of IAsyncResult returned from a call to BeginMemoryOptimizedReadSingleSampleMultiLine(AsyncCallback, Object, Boolean).
DaqExceptionThe NI-DAQmx driver returned an error during the asynchronous operation.
OutOfMemoryExceptionThere is not enough memory to carry out this operation.

Remarks

If you call this method before the asynchronous read is complete, it waits for the read to complete before returning.

NI-DAQmx read and write methods time out after the amount of time specified by the Timeout property on the task you are reading from or writing to.

Note Note
Refer to Asynchronous Reads and Writes for additional information.

See Also

Was this information helpful?