mpylab.device.rec_pmm_9010 moduleΒΆ
PMM 9010 receiver driver (chapter 14 remote protocol).
- class mpylab.device.rec_pmm_9010.RECEIVER(**kw)
Bases:
RECEIVERConcrete PMM 9010 receiver driver.
- GetAttenuation()
Return the configured Sweep Mode attenuation policy.
- GetData()
Trigger and acquire one blocking level reading.
- GetDataNB(retrigger=False)
Read the single-frequency sweep started by
Trigger().
- GetDescription()
Query and return receiver identification string.
- GetDetector()
Return detector mode.
- GetFreq()
Return the frequency selected for the next sweep acquisition.
- GetMeasTime()
Return the configured Sweep Mode hold time in seconds.
- GetMinAttenuation()
Return configured minimum attenuation in dB.
- GetPreamplifier()
Return the configured Sweep Mode preamplifier state.
- GetResolutionBandwidth()
Return the configured Sweep Mode RBW setting.
- Init(ini=None, channel=None, ignore_bus=None)
Initialize receiver settings from INI channel configuration.
- Quit()
Close receiver session.
- RunScan(start_freq=None, stop_freq=None, step_freq=None, detectors=None, rbw=None, meas_time=None, attenuation=None, min_attenuation=None, preamplifier=None, spacing='linear', cancel_callback=None, progress_callback=None, frequencies=None, hold_time=None, preselector=None)
Run PMM receiver scan mode and return the generic receiver scan shape.
- RunSweep(start_freq, stop_freq, step_freq, detectors=('peak',), hold_time=0.0, rbw=9000.0, min_attenuation=None, preamplifier=None, preselector=True, progress_callback=None, cancel_callback=None)
Run a non-smart PMM
SSFDsweep and return dBm detector arrays.This receiver-oriented helper prepares the non-smart Sweep Mode path from chapter 14. It intentionally does not support Smart Detector mode or Frequency-Scan-Tab sweeps yet.
- SetAttenuation(attenuation)
Configure automatic sweep attenuation.
PMM Sweep Mode always uses automatic attenuation. Its lower bound is configured separately through
SetMinAttenuation().
- SetDetector(detector)
Set detector mode.
- SetFreq(freq)
Set receiver frequency in Hz.
- SetMeasTime(meas_time)
Set the hold time passed to subsequent
SSFDsweeps.
- SetMinAttenuation(min_attenuation)
Set minimum attenuation floor in dB.
- SetPreamplifier(preamplifier)
Set the preamplifier state passed to subsequent sweeps.
- SetResolutionBandwidth(rbw)
Set the RBW passed to subsequent sweeps, or select CISPR RBW automatically.
- SupportsHardwareScan()
Return that PMM
SSFDscan mode is available.
- Trigger()
Start the two-point sweep used for one receiver reading.
- mpylab.device.rec_pmm_9010.main()
Run a minimal command-line smoke test for the PMM receiver.
- mpylab.device.rec_pmm_9010.receiver_scan_smoke_test(receiver, start_freq=1000000.0, stop_freq=1020000.0, step_freq=10000.0, detectors=('peak', 'average'), hold_time=0.0, rbw=9000.0, min_attenuation=10, preamplifier=False, preselector=True, output=<built-in function print>)
Run a short PMM receiver scan hardware check via
RunScan.This is the preferred smoke test for PMM receiver scan mode. It keeps the device-specific SSFD details behind the common receiver
RunScanAPI.
- mpylab.device.rec_pmm_9010.sweep_smoke_test(receiver, start_freq=1000000.0, stop_freq=1020000.0, step_freq=10000.0, detectors=('peak', 'average'), hold_time=0.0, rbw=9000.0, min_attenuation=10, preamplifier=False, preselector=True, output=<built-in function print>)
Run a short PMM receiver Sweep Mode hardware check.
The helper keeps the
SSFDcheck out ofmain()so it can be invoked manually after a receiver has been initialized against hardware. It returns the sweep payload fromRECEIVER.RunSweep().