Amperemeter
Module holding classes for amperemeters.
- class qosst_hal.amperemeter.FakeAmpereMeter(_location: Any, **_kwargs)
Fake AmpereMeter.
Always return 0 when get_current is called.
- __init__(_location: Any, **_kwargs)
- Parameters:
_location (Any) – ignored parameter.
- close() None
Close the fake hardware (do nothing).
- get_current(**_kwargs) float
Return the measured current. 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.amperemeter.GenericAmpereMeter
Generic AmpereMeter.
Each amperemeter must have:
get_current : get the current for the amperemeter.
open : open the amperemeter
close : close the amperemeter
- abstract get_current(**_kwargs) float
Get the current current.
- Returns:
the current current.
- Return type:
float