Class HighVoltageTest
- Namespace
- Loehnert.Lisrt.HighVoltageTester.Chroma
- Assembly
- Loehnert.Lisrt.HighVoltageTester.Chroma.dll
Represents functions for an high voltage test.
public class HighVoltageTest : TestBase<HighVoltageTestConfiguration, HighVoltageTestResult>, INotifyPropertyChangedEx, INotifyPropertyChanged
- Inheritance
-
PropertyChangedBaseHighVoltageTest
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Methods
Configure(HighVoltageTestConfiguration)
Configures the high voltage test.
public override void Configure(HighVoltageTestConfiguration configuration)
Parameters
configuration
HighVoltageTestConfigurationConfiguration for high voltage test.
Exceptions
- ArgumentNullException
Thrown when
configuration
is null.- NotInitializedException
Thrown when InitializationState is not Initialized.
Run(CancellationToken)
Runs a high voltage test.
public override HighVoltageTestResult Run(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenCancellation token to cancel the method.
Returns
- HighVoltageTestResult
High voltage measurement result data.
Remarks
Check the Classification property for the classification of the measurement result.
Exceptions
- NotInitializedException
Thrown when InitializationState is not Initialized.
- InvalidOperationException
Thrown when Configure(HighVoltageTestConfiguration) is not first be executed.
- OperationCanceledException
Thrown when the test is canceled by one of these reasons: Loehnert.Lisrt.HighVoltageTester.Chroma.DeviceState.CanNotTest, Loehnert.Lisrt.HighVoltageTester.Chroma.DeviceState.FuseHasTripped, Loehnert.Lisrt.HighVoltageTester.Chroma.DeviceState.GroundingResistanceTestHasTripped, Loehnert.Lisrt.HighVoltageTester.Chroma.DeviceState.UserStop or Loehnert.Lisrt.HighVoltageTester.Chroma.DeviceState.HasStopped.