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:
- Attributes:
- name
str
The name of the module.
- id
int
The id of the module.
- id_2
int
The second id of the module.
- component
Laser
The laser component.
- power_register
AsciiRegister
Handles the “Power” register.
- display_current_register
AsciiRegister
Handles the “Display current” register.
- fault_register
AsciiRegister
Handles the “Fault code” register.
- power_register_2
AsciiRegister
Handles the “Power” register which handles the propagation.
- display_current_register_2
AsciiRegister
Handles the “Display current” register.
- fault_register_2
AsciiRegister
Handles the “Fault code” register.
- continous_burst_mode_trigger_burst_register
AsciiRegister
Handles the “Continuous %f Burst mode %f Trigger burst” register.
- output_energy_level_register
AsciiRegister
Handles the “Output energy level” register.
- frequency_divider_register
AsciiRegister
Handles the “frequency divider” register.
- burst_pulse_left_register
AsciiRegister
Handles the “Burst pulse left” register.
- qsw_adjustment_output_delay_register
AsciiRegister
Handles the “qsw adjustment output delay” register.
- repetition_rate_register
AsciiRegister
Handles the “Repetition rate” register.
- synchronization_mode_register
AsciiRegister
Handles the “Synchronization mode” register.
- burst_length_register
AsciiRegister
Handles the “Burst length” register. Set the count of bursts during propagation. Accepts values between 1 and 50,000
- name
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 the propagation of the laser.
Stop the propagation of the laser.
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:
- value
int
The amount of pulses to perform. Accepts values between 1 and 50000
- value
- async set_output_energy_level(value)¶
Set the output energy level for the laser.
- Parameters:
- value
str
, {OFF,Adjust,MAX}
- value
- Returns:
- None
- async set_propagation_mode(value)¶
Set the propagation mode of the laser.
- value
str
, {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.
- value
- 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