FetchLCR(string, PrecisionTimeSpan, int)
- Updated2025-10-06
- 1 minute(s) read
Returns an NILCRMeasurement array of previously measured LCR data on the specified channel that have been taken and stored in a buffer.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIDCPower
public NILCRMeasurement[] FetchLCR(string channelString, PrecisionTimeSpan timeout, int pointsToFetch)
Remarks
To use this method:
Set MeasureWhen to AutomaticallyAfterSourceComplete or OnMeasureTrigger
Put the channel in the Running state (call Initiate)
This method is not supported by all instruments. Refer to the Supported Functions by Device topic in the NI DC Power Supplies and SMUs Help for information about supported instruments.
Parameters
| Name | Type | Description |
|---|---|---|
| channelString | string | Specifies which channel to fetch measurements from. You can specify only a single channel. Specify the channel using the form PXI1Slot3/0, where PXI1Slot3 is the instrument resource name and 0 is the channel. If the session has only a single channel, you may specify an empty string to select that 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 NILCRMeasurement array.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The FetchLCR method was accessed after the associated NIDCPower object was disposed. |