NI-DCPower .NET fx45 API Reference

Table of Contents

DCPowerMeasurement.Fetch Method

  • Updated2024-01-04
  • 1 minute(s) read
DCPowerMeasurement.Fetch Method

DCPowerMeasurementFetch Method

Returns DCPowerFetchResult struct created from measurements.

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

Syntax

public DCPowerFetchResult Fetch(
	string channelString,
	PrecisionTimeSpan timeout,
	int pointsToFetch
)
Public Function Fetch ( 
	channelString As String,
	timeout As PrecisionTimeSpan,
	pointsToFetch As Integer
) As DCPowerFetchResult

Parameters

channelString
Type: SystemString
Specifies which output 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
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.

Return Value

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

Exceptions

ExceptionCondition
ObjectDisposedException The Measure(String) method was accessed after the associated NIDCPower object was disposed.

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