Class InsulationTest
- Namespace
- Loehnert.Lisrt.HighVoltageTester.SpsElectronic
- Assembly
- Loehnert.Lisrt.HighVoltageTester.SpsElectronic.dll
Represents functions for testing insulation.
public class InsulationTest : TestBase<InsulationTestConfiguration, InsulationTestResult>, INotifyPropertyChangedEx, INotifyPropertyChanged
- Inheritance
-
PropertyChangedBaseInsulationTest
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Methods
Configure(InsulationTestConfiguration)
Configures the insulation test.
public override void Configure(InsulationTestConfiguration configuration)
Parameters
configuration
InsulationTestConfigurationConfiguration for insulation test.
Exceptions
- ArgumentNullException
Thrown when
configuration
is null.- NotInitializedException
Thrown when InitializationState is not Initialized.
Run(CancellationToken)
Runs an insulation test.
public override InsulationTestResult Run(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenCancellation token to cancel the method.
Returns
- InsulationTestResult
Insulation measurement result data.
Remarks
Check the CancellationReason property whether measurement was canceled.
Exceptions
- NotInitializedException
Thrown when InitializationState is not Initialized.
- OperationCanceledException
Thrown when the test is canceled by one of these reasons: HardwareError, NoGeneratorPowerOrShortCircuit, CanceledByRemoteControl, SafetyContactReleased, TemperatureError, or StopButton.