Powermeter

PowerMeter module for qosst-hal.

class qosst_hal.powermeter.FakePowerMeter(*_args, **_kwargs)

Fake PowerMeter, to be used as a dummy PowerMeter.

__init__(*_args, **_kwargs) None

All args are ignored.

__str__() str

Return str(self).

close() None

Close the fake hardware (do nothing).

open() None

Open the fake hardware (do nothing).

read() float

Read the power from the fake hardware. Always return 1e-6.

Returns:

always 1e-6 for the fake hardware.

Return type:

float

class qosst_hal.powermeter.GenericPowerMeter(*_args, **_kwargs)

A Generic PowerMeter should have the following fonction:

  • open: open the powermeter

  • close: close the powermeter

  • read: read the current value

__init__(*_args, **_kwargs) None

All parameters are ignored.

__str__() str

Return str(self).

abstract read() float

Read the current value.

Returns:

current value of the powermeter.

Return type:

float