DCPowerMeasurement.MeasureLCR Method
- Updated2024-01-04
- 2 minute(s) read

DCPowerMeasurementMeasureLCR Method
Measures and returns an NILCRMeasurement array of LCR data on the specified output channel(s).
Namespace: NationalInstruments.ModularInstruments.NIDCPower
Assembly: NationalInstruments.ModularInstruments.NIDCPower.Fx45 (in NationalInstruments.ModularInstruments.NIDCPower.Fx45.dll) Version: 2023
Syntax
public NILCRMeasurement[] MeasureLCR( string channelString )
Public Function MeasureLCR ( channelString As String ) As NILCRMeasurement()
Parameters
- channelString
- Type: SystemString
Specifies the output channels to measure. 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.
Return Value
Type: NILCRMeasurementReturns a NILCRMeasurement array. The measurements in the arrays are returned in the same order as the channels specified in the channel string on which the measurement is done.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The MeasureLCR(String) method was accessed after the associated NIDCPower object was disposed. |
Remarks
To use this method:
- Set InstrumentMode to LCR
- Set MeasureWhen to OnDemand
- Put the channel(s) in the Running state (call Initiate)
Each call to this method blocks other method calls until the measurements are returned from the channel(s). The order of the measurements returned in the array corresponds to the order on the specified channel(s). The measurement speed of the channel(s) and the SamplesToAverage property dictate the length of time that a measurement takes.
![]() |
---|
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. |