PerformOpenCompensation(double[])
- Updated2025-10-06
- 2 minute(s) read
Generates open compensation data for LCR measurements based on a default set of test frequencies and, optionally, additional frequencies you can specify.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIDCPower
public void PerformOpenCompensation(double[] frequencies)
Remarks
You must physically configure an open LCR circuit to use this method to generate valid open compensation data.
The open compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data.
Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain.
To apply the open compensation data you generate with this method to your LCR measurements, set OpenCompensationEnabled to true.
Corrections for frequencies other than the default frequencies or any additional frequencies you specify are interpolated.
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.
Default Open Compensation Frequencies
By default, NI-DCPower uses the following frequencies for LCR open compensation:
10 logarithmic steps at 1 kHz frequency decade
10 logarithmic steps at 10 kHz frequency decade
100 logarithmic steps at 100 kHz frequency decade
100 logarithmic steps at 1 MHz frequency decade
The actual frequencies used depend on the bandwidth of your instrument.
Parameters
| Name | Type | Description |
|---|---|---|
| frequencies | double[] | Defines a System.Double array of further frequencies, in addition to the default frequencies, to perform the compensation for. You can specify <=200 additional frequencies. |
Exceptions
| Type | Description |
|---|---|
| Ivi.Driver.IviCDriverException | The underlying NI-DCPower driver returned an error. |