MaxiOPG

class lsst.ts.tunablelaser.MaxiOPG(component, simulation_mode=False, configuration='No SCU')

Bases: CanbusModule

Implement the MaxiOPG laser module which contains registers for optical alignment and wavelength.

Parameters:
commanderTCPIPClient

A reference to the tcp/ip client

simulation_modebool

False for normal operation, true for simulation operation.

configurationstr

Used for unit testing, changes the laser direction between the spectral cleaning unit or not Requires a physical change on the hardware which is why it’s hardcoded in the class.

Attributes:
namestr

The name of the module.

idint

The id of the module.

commanderTCPIPClient

A reference to the tcp/ip client.

wavelength_registerAsciiRegister

Handles the “WaveLength” register.

configuration_registerAsciiRegister

Handles the “Configuration” register.

Methods Summary

change_wavelength(wavelength)

Change the wavelength of the laser.

set_configuration()

Set the configuration of the output of the laser

update_register()

Publish the register values of the modules.

Methods Documentation

async change_wavelength(wavelength)

Change the wavelength of the laser.

Parameters:
wavelengthfloat

The wavelength to change to.

Returns:
None
async set_configuration()

Set the configuration of the output of the laser

Parameters:
configurationstr, {Det,No SCU,SCU,F1 SCU,F2 SCU,F1 No SCU,
F2 No SCU}

These are the output points that can be chosen. Note that if SCU/No SCU is set in the controller, then only those options with the term can be chosen.

Returns:
None
async update_register()

Publish the register values of the modules.

Returns:
None