Laser

class lsst.ts.tunablelaser.Laser(csc, terminator, encoding, simulation_mode=False)

Bases: ABC

Implement common Laser interface.

Parameters:
cscLaserCSC

The CSC object.

terminatorbytes

The characters that terminate sent/received messages.

encodingstr

The type of encoding to use.

simulation_modebool, optional

Is the laser being simulated?

Attributes:
cscLaserCSC

The CSC object.

terminatorbytes

The characters that terminate sent/received messages.

encodingstr

The type of encoding to use.

loglogging.Logger

The log of the component.

simulation_modebool

Is the laser being simulated?

commanderlsst.ts.tcpip.Client

A TCP/IP client.

Attributes Summary

connected

Is the laser connected?

is_propagating

Is the laser propagating?

temperature

The temperature sensors.

wavelength

The wavelength of the laser.

Methods Summary

change_wavelength(wavelength)

Change the wavelength.

clear_fault()

Clear the fault state of the laser.

configure(config)

Configure the laser.

connect()

Connect to the laser.

disconnect()

Disconnect from the laser.

set_burst_mode(count)

Set the burst mode and count.

set_output_energy_level(output_energy_level)

Set the output energy level.

start_propagating()

Start propagating the laser.

stop_propagating()

Stop propagating the laser.

trigger_burst()

Trigger burst.

Attributes Documentation

connected

Is the laser connected?

is_propagating

Is the laser propagating?

temperature

The temperature sensors.

wavelength

The wavelength of the laser.

Methods Documentation

abstract change_wavelength(wavelength)

Change the wavelength.

Parameters:
wavelength: `float`

The value to change the wavelength.

abstract clear_fault()

Clear the fault state of the laser.

abstract configure(config)

Configure the laser.

async connect()

Connect to the laser.

async disconnect()

Disconnect from the laser.

abstract set_burst_mode(count)

Set the burst mode and count.

abstract set_output_energy_level(output_energy_level)

Set the output energy level.

Parameters:
output_energy_level:

The laser’s energy level.

abstract start_propagating()

Start propagating the laser.

abstract stop_propagating()

Stop propagating the laser.

abstract trigger_burst()

Trigger burst.