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

Syntax

Namespace: NationalInstruments.PowerSignalsDaq

public double[,] ReadMultiChannelMultiSampleDouble(TimeSpan timeout)

Remarks

If timeout  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
timeoutTimeSpan

Specifies the wait time for samples to become available.

Returns

A 2D array of samples.
ReadMultiChannelMultiSampleDouble(System.TimeSpan) returns 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 CreateCurrentInputChannel or CreateVoltageInputChannel.

Exceptions

TypeDescription
PowerSignalsDaqException

Thrown when one of the following error conditions occurs: