Returns a IAsyncResult struct that represents pending Asynchronous measure.

Syntax

Namespace: NationalInstruments.ModularInstruments.NIDCPower

public IAsyncResult BeginMeasure(string channelString, DCPowerMeasureResult result, AsyncCallback callback, object asyncState)

Remarks

The function does the Asynchronous measurements

Parameters

NameTypeDescription
channelStringstring

Specifies the channels to measure. 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.

resultDCPowerMeasureResult

Returns a DCPowerMeasureResult struct that contains arrays of current measurements and voltage measurements.

callbackAsyncCallback

Specifies a delegate of type System.AsyncCallback, which will be invoked once the operation is complete.

asyncStateobject

Specifies the state of the asynchronous operation.

Returns

Returns a System.IAsyncResult struct that represents the pending asynchronous measurement.
Note

The measurements in the arrays are returned in the same order as the channels specified in the channel string on which the measurement is done.