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

Syntax

Namespace: NationalInstruments.PowerSignalsDaq

public double[,] ReadMultiChannelMultiSampleDouble(int timeoutInMilliseconds=10_000)

Remarks

If the timeoutInMilliseconds  value is set to an effective value of -1 seconds (ex: -1000 milliseconds), this method waits indefinitely.

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

Parameters

NameTypeDescription
timeoutInMillisecondsint

Specifies the amount of time in milliseconds to wait for samples to become available. This parameter is optional and defaults to 10000 ms.

Returns

ReadMultiChannelMultiSampleDouble(int) 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: