Voltmeter
Module holding classes for voltmeters.
- class qosst_hal.voltmeter.FakeVoltMeter(_location: Any, **_kwargs)
Fake VoltMeter.
Always return 0 when get_voltage is called.
- __init__(_location: Any, **_kwargs)
- Parameters:
_location (Any) – ignored parameter.
- close() None
Close the fake hardware (do nothing).
- get_voltage(**_kwargs) float
Return the measured voltage. In the case of the fake hardware, always return 0.0.
- Returns:
always 0.0 for the fake hardware.
- Return type:
float
- open() None
Open the fake hardware (do nothing).
- class qosst_hal.voltmeter.GenericVoltMeter
Generic VoltMeter.
Each voltmeter must have:
get_voltage : get the voltage for the voltmeter.
open : open the voltmeter
close : close the voltmeter
- abstract get_voltage(**_kwargs) float
Get the current voltage.
- Returns:
the current voltage.
- Return type:
float