Fetch(string, PrecisionTimeSpan, int)
- Updated2025-10-06
- 1 minute(s) read
Returns DCPowerFetchResult struct created from measurements.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIDCPower
public DCPowerFetchResult Fetch(string channelString, PrecisionTimeSpan timeout, int pointsToFetch)
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 which channel from which to fetch data. You can only fetch data from one channel at a time. Specify the channel using the form PXI1Slot3/0, where PXI1Slot3 is the instrument resource name and 0 is the channel. |
| 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. |
Returns
Returns a DCPowerFetchResult struct that contains arrays of current measurements, voltage measurements and compliance measurements.