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

NameTypeDescription
channelStringstring

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.

timeoutPrecisionTimeSpan

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.

pointsToFetchint

Specifies the number of measurements to fetch.

Returns

Returns a DCPowerFetchResult struct that contains arrays of current measurements, voltage measurements and compliance measurements.

Exceptions

TypeDescription
System.ObjectDisposedException

The Measure method was accessed after the associated NIDCPower object was disposed.