NI-DCPower .NET fx40 API Reference

Table of Contents

DCPowerMeasurement.BeginFetch Method

  • Updated2024-01-04
  • 2 minute(s) read
DCPowerMeasurement.BeginFetch Method

DCPowerMeasurementBeginFetch Method

Returns a IAsyncResult struct that represents pending Asynchronous fetch.

Namespace:  NationalInstruments.ModularInstruments.NIDCPower
Assembly:  NationalInstruments.ModularInstruments.NIDCPower.Fx40 (in NationalInstruments.ModularInstruments.NIDCPower.Fx40.dll) Version: 2023

Syntax

public IAsyncResult BeginFetch(
	string channelString,
	PrecisionTimeSpan timeout,
	int pointsToFetch,
	DCPowerFetchResult result,
	AsyncCallback callback,
	Object asyncState
)
Public Function BeginFetch ( 
	channelString As String,
	timeout As PrecisionTimeSpan,
	pointsToFetch As Integer,
	result As DCPowerFetchResult,
	callback As AsyncCallback,
	asyncState As Object
) As IAsyncResult

Parameters

channelString
Type: SystemString
Specifies to which output channels to apply this configuration value. Specify the channel(s) using the form PXI1Slot3/0,PXI1Slot3/2-3,PXI1Slot4/2-3 or PXI1Slot3/0,PXI1Slot3/2:3,PXI1Slot4/2:3, where PXI1Slot3 and PXI1Slot4 are instrument resource names and 0, 2, and 3 are channels. If you do not provide channel(s), all channels in the session are used.
timeout
Type: NationalInstrumentsPrecisionTimeSpan
Specifies the maximum time allowed for this method to complete, in seconds. If the method does not complete within this time interval, NI-DCPower returns an error.
pointsToFetch
Type: SystemInt32
Specifies the number of measurements to fetch.
result
Type: NationalInstruments.ModularInstruments.NIDCPowerDCPowerFetchResult
a DCPowerFetchResult struct that contains arrays of current measurements, voltage measurements and compliance measurements.
callback
Type: SystemAsyncCallback
Specifies a delegate of type AsyncCallback, which will be invoked once the operation is complete.
asyncState
Type: SystemObject
Specifies the state of the asynchronous operation.

Return Value

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

Remarks

This method should not be used when the MeasureWhen property is set to OnDemand. You must first call Initiate before calling this method.

See Also

Log in to get a better experience