pylablib.devices.LaserQuantum package

Submodules

pylablib.devices.LaserQuantum.base module

exception pylablib.devices.LaserQuantum.base.LaserQuantumError[source]

Bases: DeviceError

Generic Laser Quantum devices error

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception pylablib.devices.LaserQuantum.base.LaserQuantumBackendError(exc)[source]

Bases: LaserQuantumError, DeviceBackendError

Generic Laser Quantum backend communication error

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

class pylablib.devices.LaserQuantum.base.TDeviceInfo(serial, software_version, cal_date)

Bases: tuple

cal_date
serial
software_version
class pylablib.devices.LaserQuantum.base.TWorkHours(psu, laser_enabled, laser_threshold)

Bases: tuple

laser_enabled
laser_threshold
psu
class pylablib.devices.LaserQuantum.base.TTemperatures(head, psu)

Bases: tuple

head
psu
class pylablib.devices.LaserQuantum.base.Finesse(conn)[source]

Bases: ICommBackendWrapper

Laser Quantum Finesse pump laser.

Parameters:

conn – serial connection parameters (usually port)

Error

alias of LaserQuantumError

query(comm, reply_lines=1)[source]

Send a query to the device and read the reply.

reply_lines specify the number of lines to read as a reply (almost all queries have only one line).

get_device_info()[source]

Get device information (serial, software_version, cal_date)

get_work_hours()[source]

Get the work hours (PSU run time, laser run time, laser above threshold time)

get_temperatures()[source]

Get device status, head temperature, and PSU temperature

get_output_status()[source]

Get output status.

Can be "enabled" or "disabled".

get_interlock_status()[source]

Get manual interlock status

get_shutter_status()[source]

Get the shutter status

is_shutter_opened()[source]

Check if shutter is opened

set_shutter(opened=True)[source]

Open or close the shutter

is_enabled()[source]

Check if the output is enabled

enable(enabled=True)[source]

Turn the output on or off

get_output_power()[source]

Get the output power (in Watts)

get_output_setpoint()[source]

Get the output setpoint power (in Watts)

set_output_power(level)[source]

Set the output power setpoint (in Watts)

get_current()[source]

Get the laser drive current (in %)

apply_settings(settings)

Apply the settings.

settings is the dict {name: value} of the device available settings. Non-applicable settings are ignored.

close()

Close the backend

get_device_variable(key)

Get the value of a settings, status, or full info parameter

get_full_info(include=0)

Get dict {name: value} containing full device information (including status and settings).

include specifies either a list of variables (only these variables are returned), a priority threshold (only values with the priority equal or higher are returned), or "all" (all available variables). Since the lowest priority is -10, setting include=-10 queries all available variables, which is equivalent to include="all".

get_full_status(include=0)

Get dict {name: value} containing the device status (including settings).

include specifies either a list of variables (only these variables are returned), a priority threshold (only values with the priority equal or higher are returned), or "all" (all available variables). Since the lowest priority is -10, setting include=-10 queries all available variables, which is equivalent to include="all".

get_settings(include=0)

Get dict {name: value} containing all the device settings.

include specifies either a list of variables (only these variables are returned), a priority threshold (only values with the priority equal or higher are returned), or "all" (all available variables). Since the lowest priority is -10, setting include=-10 queries all available variables, which is equivalent to include="all".

is_opened()

Check if the device is connected

lock(timeout=None)

Lock the access to the device from other threads/processes (isn’t necessarily implemented)

locking(timeout=None)

Context manager for lock & unlock

open()

Open the backend

set_device_variable(key, value)

Set the value of a settings parameter

unlock()

Unlock the access to the device from other threads/processes (isn’t necessarily implemented)

Module contents