MCPU800

class lsst.ts.tunablelaser.MCPU800(component, simulation_mode=False)

Bases: CanbusModule

Implement the MCPU800 laser module which contains registers for controlling aspects of the propagation of the laser.

Parameters:
componentLaser

The laser component.

simulation_modebool

False for normal operation, true for simulation operation.

Attributes:
namestr

The name of the module.

idint

The id of the module.

id_2int

The second id of the module.

componentLaser

The laser component.

power_registerAsciiRegister

Handles the “Power” register.

display_current_registerAsciiRegister

Handles the “Display current” register.

fault_registerAsciiRegister

Handles the “Fault code” register.

power_register_2AsciiRegister

Handles the “Power” register which handles the propagation.

display_current_register_2AsciiRegister

Handles the “Display current” register.

fault_register_2AsciiRegister

Handles the “Fault code” register.

continous_burst_mode_trigger_burst_registerAsciiRegister

Handles the “Continuous %f Burst mode %f Trigger burst” register.

output_energy_level_registerAsciiRegister

Handles the “Output energy level” register.

frequency_divider_registerAsciiRegister

Handles the “frequency divider” register.

burst_pulse_left_registerAsciiRegister

Handles the “Burst pulse left” register.

qsw_adjustment_output_delay_registerAsciiRegister

Handles the “qsw adjustment output delay” register.

repetition_rate_registerAsciiRegister

Handles the “Repetition rate” register.

synchronization_mode_registerAsciiRegister

Handles the “Synchronization mode” register.

burst_length_registerAsciiRegister

Handles the “Burst length” register. Set the count of bursts during propagation. Accepts values between 1 and 50,000

Methods Summary

set_burst_count(value)

Set the burst count for the laser when in burst mode.

set_output_energy_level(value)

Set the output energy level for the laser.

set_propagation_mode(value)

Set the propagation mode of the laser.

start_propagating()

Start the propagation of the laser.

stop_propagating()

Stop the propagation of the laser.

update_register()

Publish the register values of the module.

Methods Documentation

async set_burst_count(value)

Set the burst count for the laser when in burst mode.

Parameters:
valueint

The amount of pulses to perform. Accepts values between 1 and 50000

async set_output_energy_level(value)

Set the output energy level for the laser.

Parameters:
valuestr, {OFF,Adjust,MAX}
Returns:
None
async set_propagation_mode(value)

Set the propagation mode of the laser.

valuestr, {Continuous, Burst, Trigger}

The mode to be set Continuous: Continuous pulse Burst: Pulses a set number of times at regular interval Trigger: Trigger a pulse using an external device Trigger has not been used as we have no source.

async start_propagating()

Start the propagation of the laser.

If used while the laser is propagating, no discernable effect occurs.

Returns:
None
async stop_propagating()

Stop the propagation of the laser.

If used while the laser is not propagating, no discernable effect occurs.

Returns:
None
async update_register()

Publish the register values of the module.

Returns:
None