MockNT252

class lsst.ts.tunablelaser.MockNT252

Bases: object

Implement the mock NT252 device.

Attributes:
loglogging.Logger

The log.

wavelengthint

The wavelength.

temperatureint

The temperature.

propagatingPower

The propagation state of the laser.

propagation_modeMode

The propagation mode.

outputOutput

The output energy level.

display_currentint

The display current.

burst_lengthint

The burst length.

Methods Summary

do_burst_length([parameter])

Return or set the burst length.

do_burst_pulses_to_go()

Return burst pulses to go.

do_continuous_burst_mode_trigger_burst([...])

Return or set the propagation mode.

do_cpu8000_16_display_current()

Return current as formatted string.

do_cpu8000_16_fault_code()

Return fault code of the module.

do_cpu8000_16_power()

Return the power state of the module

do_display_current()

Return the display current.

do_display_temperature()

Return display temperature.

do_error_code()

Return the error code.

do_fault_code()

Return the fault code.

do_frequency_divider()

Return frequency divider.

do_hv_voltage()

Return hv voltage.

do_m_cpu800_17_display_current()

Return the power current of the module

do_m_cpu800_17_fault_code()

Return the fault code of the module

do_m_cpu800_17_power()

Return the power state of the module

do_m_cpu800_18_burst_length()

Return current burst length as formatted string.

do_m_cpu800_18_burst_pulses_to_go()

Return current burst pulses left as formatted string.

do_m_cpu800_18_continuous_burst_mode_trigger_burst()

Return laser propagation mode.

do_m_cpu800_18_display_current()

Return the power current of the module.

do_m_cpu800_18_fault_code()

Return the fault code of the module.

do_m_cpu800_18_frequency_divider()

Return current frequency divider as formatted string.

do_m_cpu800_18_output_energy_level()

Return current output energy level as formatted string.

do_m_cpu800_18_power()

Return propagation state.

do_m_cpu800_18_qsw_adjustment_output_delay()

Return current qsw adjustment output delay as formatted string.

do_m_cpu800_18_repetition_rate()

Return current repetition rate as formatted string.

do_m_cpu800_18_synchronization_mode()

Return current synchronization mode as formatted string.

do_midiopg_31_wavelength()

Return current wavelength as formatted string.

do_output_energy_level([parameter])

Return or set the output energy level.

do_power([parameter])

Return or set the power status.

do_qsw_adjustment_output_delay()

Return qsw adjustment output delay.

do_repetition_rate()

Return the repetition rate.

do_set_m_cpu800_18_burst_length(count)

do_set_m_cpu800_18_continuous_burst_mode_trigger_burst(mode)

Set the propagation mode of the laser.

do_set_m_cpu800_18_output_energy_level(...)

Change output energy level as formatted string.

do_set_m_cpu800_18_power(state)

Set the propagation state of the laser.

do_set_midiopg_31_wavelength(wavelength)

Set wavelength.

do_set_temperature()

Return set temperature.

do_synchronization_mode()

Return synchronization mode.

do_tk6_44_display_temperature()

do_tk6_45_display_temperature()

do_wavelength([parameter])

Return or set wavelength.

parse_command(msg)

Parse the message received and return response.

Methods Documentation

do_burst_length(parameter=None)

Return or set the burst length.

do_burst_pulses_to_go()

Return burst pulses to go.

do_continuous_burst_mode_trigger_burst(parameter=None)

Return or set the propagation mode.

do_cpu8000_16_display_current()

Return current as formatted string.

Returns:
str
do_cpu8000_16_fault_code()

Return fault code of the module.

Returns:
str
do_cpu8000_16_power()

Return the power state of the module

Returns:
str

The current power state of the module.

do_display_current()

Return the display current.

do_display_temperature()

Return display temperature.

do_error_code()

Return the error code.

do_fault_code()

Return the fault code.

do_frequency_divider()

Return frequency divider.

do_hv_voltage()

Return hv voltage.

do_m_cpu800_17_display_current()

Return the power current of the module

Returns:
str

The displayed current.

do_m_cpu800_17_fault_code()

Return the fault code of the module

Returns:
str

The current fault code. Always returns 0.

do_m_cpu800_17_power()

Return the power state of the module

Returns:
str

The current power state of the module

do_m_cpu800_18_burst_length()

Return current burst length as formatted string.

Returns:
str
do_m_cpu800_18_burst_pulses_to_go()

Return current burst pulses left as formatted string.

Returns:
str
do_m_cpu800_18_continuous_burst_mode_trigger_burst()

Return laser propagation mode.

Returns:
str
do_m_cpu800_18_display_current()

Return the power current of the module.

do_m_cpu800_18_fault_code()

Return the fault code of the module.

do_m_cpu800_18_frequency_divider()

Return current frequency divider as formatted string.

Returns:
str
do_m_cpu800_18_output_energy_level()

Return current output energy level as formatted string.

Returns:
str
do_m_cpu800_18_power()

Return propagation state.

Returns:
str
do_m_cpu800_18_qsw_adjustment_output_delay()

Return current qsw adjustment output delay as formatted string.

Returns:
str
do_m_cpu800_18_repetition_rate()

Return current repetition rate as formatted string.

Returns:
str
do_m_cpu800_18_synchronization_mode()

Return current synchronization mode as formatted string.

Returns:
str
do_midiopg_31_wavelength()

Return current wavelength as formatted string.

Returns:
str

The current wavelength.

do_output_energy_level(parameter=None)

Return or set the output energy level.

do_power(parameter=None)

Return or set the power status.

do_qsw_adjustment_output_delay()

Return qsw adjustment output delay.

do_repetition_rate()

Return the repetition rate.

do_set_m_cpu800_18_burst_length(count)
do_set_m_cpu800_18_continuous_burst_mode_trigger_burst(mode)

Set the propagation mode of the laser.

Parameters:
modestr, {Continuous, Burst, Trigger}

The mode to be set.

Returns:
str

An empty message if successful or an error message if mode not in accepted values.

do_set_m_cpu800_18_output_energy_level(energy_level)

Change output energy level as formatted string.

Returns:
str
do_set_m_cpu800_18_power(state)

Set the propagation state of the laser.

Parameters:
statestr, {OFF, ON, FAULT}

The propagation state

  • OFF: Laser is not propagating

  • ON: Laser is propagating

  • FAULT: Laser is in fault, usually interlock is engaged

Returns:
str

An empty message

do_set_midiopg_31_wavelength(wavelength)

Set wavelength.

Parameters:
wavelengthstr

The wavelength to set, must be between 300 and 1100 nanometers.

Returns:
replystr

Successful reply: empty message Error: starts with ‘’’ plus error message

do_set_temperature()

Return set temperature.

do_synchronization_mode()

Return synchronization mode.

do_tk6_44_display_temperature()
do_tk6_45_display_temperature()
do_wavelength(parameter=None)

Return or set wavelength.

parse_command(msg)

Parse the message received and return response.

Parameters:
msgstr

The message.