ReadMultiChannelMultiSampleDoubleAsync(int)
- Updated2025-01-08
- 1 minute(s) read
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(int acquisitionTimeoutInMilliseconds=10_000)
Remarks
If the acquisitionTimeoutInMilliseconds 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
| Name | Type | Description |
|---|---|---|
| acquisitionTimeoutInMilliseconds | int | Specifies the amount of time in milliseconds to wait for samples to become available. This parameter is optional and defaults to 10000 ms. |
Returns
ReadMultiChannelMultiSampleDoubleAsync(int) 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 or CreateVoltageInputChannelAsync.
Exceptions
| Type | Description |
|---|---|
| PulserSessionException | Thrown when one of the following error conditions occurs:
|