pwrdetector_qt

PowerDetector

_images/PowerDetector.png
class qtrfblocks.PowerDetector(controller: PwrDetectorController, cal_devices: Dict | None = None)[source]
create_detector_group(cal_callback: Callable | None = None, caldev_list: List[str] | None = None) QGroupBox[source]

Create UI controls for a power detector.

If cal_callback is not None a Calibration button will be included in the UI control group. This button gives access to the Calibrate dialog window which allows the specification of calibration parameters and the initiation of the calibration process.

Parameters:
  • cal_callback (Callable) – An optional callback which will perform a calibration on the detector.

  • caldev_list (List[str]) – An optional list of device names for the calibration signal source.

update_freq(f: float) None[source]

Update the displayed detector signal frequency.

update_pwr(pwr: float) None[source]

Update the displayed detector measured power level.

PwrCalibrationDialog

_images/PwrCalibrationDialog.png
class qtrfblocks.PwrCalibrationDialog(app: PowerDetector, controller: PwrDetectorController, cal_callback: Callable, caldev_list: List[str], parent: QObject | None = None)[source]
close(self) bool[source]