Table of Contents

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
PropertyChangedBase
HighVoltageTest
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Methods

Configure(HighVoltageTestConfiguration)

Configures the high voltage test.

public override void Configure(HighVoltageTestConfiguration configuration)

Parameters

configuration HighVoltageTestConfiguration

Configuration 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 CancellationToken

Cancellation 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.