BeginFetch(string, PrecisionTimeSpan, int, DCPowerFetchResult, AsyncCallback, object)
- Updated2025-10-06
- 1 minute(s) read
Returns a IAsyncResult struct that represents pending Asynchronous fetch.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIDCPower
public IAsyncResult BeginFetch(string channelString, PrecisionTimeSpan timeout, int pointsToFetch, DCPowerFetchResult result, AsyncCallback callback, object asyncState)
Remarks
This method should not be used when the MeasureWhen property is set to OnDemand. You must first call Initiate before calling this method.
Parameters
| Name | Type | Description |
|---|---|---|
| channelString | string | Specifies to which 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 | PrecisionTimeSpan | 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 | int | Specifies the number of measurements to fetch. |
| result | DCPowerFetchResult | a DCPowerFetchResult struct that contains arrays of current measurements, voltage measurements and compliance measurements. |
| callback | AsyncCallback | Specifies a delegate of type System.AsyncCallback, which will be invoked once the operation is complete. |
| asyncState | object | Specifies the state of the asynchronous operation. |
Returns
An System.IAsyncResult that represents the pending asynchronous fetch.