Asynchronously reads floating-point samples from the session that contains one or more input channels.

Syntax

Namespace: NationalInstruments.ECUTS.Pulser

public async Task< double[,]> ReadMultiChannelMultiSampleDoubleAsync(TimeSpan acquisitionTimeout)

Remarks

If the acquisitionTimeout  value is set to an effective value of -1 seconds (ex: TimeSpan.FromSeconds(-1)), this method waits indefinitely.

If it is set to TimeSpan.Zero, this method tries to read the requested samples once.

Parameters

NameTypeDescription
acquisitionTimeoutTimeSpan

Specifies the wait time for samples to become available.

Returns

ReadMultiChannelMultiSampleDoubleAsync(System.TimeSpan) returns a task that represents the asynchronous operation. The task result is a 2D array of samples.
Each row corresponds to a channel in the session. Each column corresponds to samples from each channel.
The order of the channels in the array corresponds to the order in which you create the channels for the session with CreateCurrentInputChannelAsync(string, double, double) or CreateVoltageInputChannelAsync(string, double, double).

Exceptions

TypeDescription
PulserSessionException

Thrown when one of the following error conditions occurs: