mpylab.device.pm_lumiloop_lspm moduleΒΆ
Driver for the Lumiloop multi-channel LSPM power meter.
- class mpylab.device.pm_lumiloop_lspm.POWERMETER(**kw)
Bases:
POWERMETERPower meter driver with synchronized trigger/waveform acquisition.
- GetData()
Acquire one synchronized power sample set and return channel data.
- GetDataNB(retrigger=False)
Return data and optionally trigger the next acquisition.
- GetFreq()
Return the currently configured frequency in Hz.
- Init(ini=None, channel=None, ignore_bus=None)
Initialize one logical channel and shared LSPM controller state.
- Quit()
Close the driver and return status.
- SetFreq(freq)
Set frequency and switch between configured low/high modes.
- conftmpl = {'channel_%d': {'file': <function _file_source>, 'filter': <class 'int'>, 'interpolation': <class 'str'>, 'manrange': <class 'float'>, 'name': <class 'str'>, 'rangemode': <class 'str'>, 'resolution': <class 'int'>, 'sensor': <class 'str'>, 'swr1': <class 'float'>, 'swr2': <class 'float'>, 'unit': <class 'str'>}, 'description': {'description': <class 'str'>, 'deviceid': <class 'str'>, 'driver': <class 'str'>, 'serialnr': <class 'str'>, 'type': <class 'str'>, 'vendor': <class 'str'>}, 'init_value': {'channels': <class 'int'>, 'fstart': <class 'float'>, 'fstep': <class 'float'>, 'fstop': <class 'float'>, 'gpib': <class 'int'>, 'mfreq': <class 'float'>, 'mode': <class 'str'>, 'nr_of_channels': <class 'int'>, 'virtual': <function strbool>, 'visa': <class 'str'>}}
- data = []
- instances = {}
- main_instance = None
- npm = 1
- setMode(mode)
Set low/high measurement mode across all attached meters.
- wait_for_laser_ready()
Wait until measurement readiness is reported for all probes.
- mpylab.device.pm_lumiloop_lspm.dBm2W(vals)
Convert dBm values to watts.
- mpylab.device.pm_lumiloop_lspm.main2()
Run an interactive manual test loop for the LSPM driver.