mpylab.device.prb_lumiloop_lsprobe module

Driver for the Lumiloop LSProbe multi-channel field probe.

class mpylab.device.prb_lumiloop_lsprobe.FIELDPROBE(**kw)

Bases: FIELDPROBE

Legacy LSProbe driver with synchronized multi-probe triggering.

Parameters:

kw (mapping) – Keyword arguments forwarded to the field-probe base class.

GetBatteryState()

Return a fixed battery-state placeholder.

Returns:

Status code and placeholder state 1.0.

Return type:

tuple of (int, float)

GetData()

Acquire a synchronized field vector for the current channel.

Returns:

Status code and averaged x-, y-, and z-axis values in V/m. Type-A scatter and the probe specification are combined as uncertainty.

Return type:

tuple of (int, list of scuq.quantities.Quantity)

GetDataNB(retrigger=False)

Return data using the blocking acquisition implementation.

Parameters:

retrigger (bool or str, optional) – Whether to trigger the next acquisition after returning the current value.

Returns:

Result returned by GetData().

Return type:

tuple of (int, list of scuq.quantities.Quantity)

GetFreq()

Return the common correction frequency.

Returns:

Status code and frequency in Hz.

Return type:

tuple of (int, float or None)

GetWaveform()

Acquire one raw waveform frame.

Returns:

Status code, time values in ms, and raw Ex, Ey, and Ez sample arrays for the first probe.

Return type:

tuple

Init(ini=None, channel=None, ignore_bus=None)

Initialize one logical channel and shared probe-controller state.

Parameters:
  • ini (path-like or file-like, optional) – INI configuration source.

  • channel (int, optional) – One-based logical probe channel.

Returns:

Driver initialization status.

Return type:

int

Quit()

Reset shared state and disable lasers on the main instance.

Returns:

Zero on success.

Return type:

int

SetFreq(freq)

Set frequency and select the corresponding detector mode.

Parameters:

freq (float) – Correction frequency in Hz.

Returns:

Status code and common frequency readback in Hz.

Return type:

tuple of (int, float or None)

conftmpl = {'channel_%d': {'name': <class 'str'>, 'unit': <class 'str'>}, 'description': {'description': <class 'str'>, 'deviceid': <class 'str'>, 'driver': <class 'str'>, 'nr_of_channels': <class 'int'>, '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'>, 'virtual': <function strbool>, 'visa': <class 'str'>}}
data = []
instances = {}
main_instance = None
nprb = 1
setMode(mode)

Set one measurement mode on all probes.

Parameters:

mode (int or str) – LSProbe detector mode.

Returns:

Applied detector mode.

Return type:

int

wait_for_laser_ready()

Block until the probe laser/calibration state is reported ready.

mpylab.device.prb_lumiloop_lsprobe.main2()

Run a manual integration test for multiple LSProbe channels.