Class HighVoltageTest
- Namespace
- Loehnert.Lisrt.HighVoltageTester.SpsElectronic
- Assembly
- Loehnert.Lisrt.HighVoltageTester.SpsElectronic.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 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.