NI-SCOPE .NET Class Library Help

ScopeChannelMeasurement.BeginFetchArrayMeasurement Method

  • Updated2023-09-06
  • 2 minute(s) read
ScopeChannelMeasurement.BeginFetchArrayMeasurement Method

ScopeChannelMeasurementBeginFetchArrayMeasurement Method

Asynchronously obtains a waveform from the digitizer and returns the specified measurement array. This method may return multiple waveforms depending on the number of channels, the acquisition type, and the number of records you specify.

Namespace:  NationalInstruments.ModularInstruments.NIScope
Assembly:  NationalInstruments.ModularInstruments.NIScope.Fx45 (in NationalInstruments.ModularInstruments.NIScope.Fx45.dll) Version: 2023

Syntax

public IAsyncResult BeginFetchArrayMeasurement(
	PrecisionTimeSpan timeout,
	ScopeArrayMeasurementType arrayMeasurementType,
	AnalogWaveformCollection<double> waveforms,
	AsyncCallback callback,
	Object asyncState
)
Public Function BeginFetchArrayMeasurement ( 
	timeout As PrecisionTimeSpan,
	arrayMeasurementType As ScopeArrayMeasurementType,
	waveforms As AnalogWaveformCollection(Of Double),
	callback As AsyncCallback,
	asyncState As Object
) As IAsyncResult

Parameters

timeout
Type: NationalInstrumentsPrecisionTimeSpan
The time to wait for data to be acquired. Using 0 for this parameter tells NI-SCOPE to fetch whatever is currently available. Using -1 for this parameter implies infinite timeout.
arrayMeasurementType
Type: NationalInstruments.ModularInstruments.NIScopeScopeArrayMeasurementType
The type of the array measurement to perform.
waveforms
Type: NationalInstrumentsAnalogWaveformCollectionDouble
The waveform object whose memory can be reused while creating the output waveform. To allocate memory during the call to this method, set waveforms to . The method will also allocate memory during the call if waveforms is set to a waveform object with zero-sized data or waveforms is set to a waveform object with a different size than that required for the output waveform. For example, if waveforms is set to a waveform object with the same size as that required for this method call, then no new memory is allocated for the output waveform, and instead the memory of the waveform object from waveforms will be reused for the output waveform.
callback
Type: SystemAsyncCallback
A delegate of type AsyncCallback, which will be invoked once the operation is complete.
asyncState
Type: SystemObject
The state of the asynchronous operation.

Return Value

Type: IAsyncResult
An IAsyncResult that represents the pending asynchronous fetch.

Remarks

Some functionality, such as time stamping, is not supported in all digitizers. Refer to Features Supported by Device for more information.

See Also

Log in to get a better experience