MockNT900

class lsst.ts.tunablelaser.MockNT900

Bases: object

Implements a mock NT900 laser.

Attributes:
wavelengthfloat

The wavelength of the laser.

temperaturefloat

The temperature of the laser.

currentstr

The electrical current of the laser.

propagatingstr

Whether the laser is propagating.

output_energy_levelstr

The energy level of the laser’s output

configurationstr

Which output the laser is propagating from.

loglogging.Logger

The log for this class.

Methods Summary

check_limits(value, min, max)

Check the limits of a value.

do_11pmku_54_power()

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_delaylin_40_error_code()

Return error code from module

do_hv40w_41_hv_voltage()

Return current hv voltage as formatted string.

do_ldco48bp_24_display_temperature()

Return temperature from module

do_ldco48bp_29_display_temperature()

Return temperature from module

do_ldco48bp_30_display_temperature()

Return temperature from module

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_m_ldco48_33_display_temperature()

Return temperature from module

do_m_ldco48_34_display_temperature()

Return temperature from module

do_maxiopg_31_configuration()

Return current configuration as formatted string.

do_maxiopg_31_wavelength()

Return current wavelength as formatted string.

do_miniopg_56_error_code()

Return current error code as formatted string.

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_maxiopg_31_configuration(configuration)

Change the configuration as formatted string.

do_set_maxiopg_31_wavelength(wavelength)

Set wavelength.

do_set_temperature()

Change setpoint temperature as formatted string.

do_tk6_44_display_temperature()

do_tk6_45_display_temperature()

parse_message(msg)

Parse and return the result of the message.

Methods Documentation

check_limits(value, min, max)

Check the limits of a value.

Parameters:
valueint

The value to check.

minint

The minimum value.

maxint

The max value

Returns:
replystr

if too low: return error if too high: return error if successful: return empty message

do_11pmku_54_power()
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_delaylin_40_error_code()

Return error code from module

do_hv40w_41_hv_voltage()

Return current hv voltage as formatted string.

Returns:
str
do_ldco48bp_24_display_temperature()

Return temperature from module

do_ldco48bp_29_display_temperature()

Return temperature from module

do_ldco48bp_30_display_temperature()

Return temperature from module

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_m_ldco48_33_display_temperature()

Return temperature from module

do_m_ldco48_34_display_temperature()

Return temperature from module

do_maxiopg_31_configuration()

Return current configuration as formatted string.

Returns:
str
do_maxiopg_31_wavelength()

Return current wavelength as formatted string.

Returns:
str

The current wavelength.

do_miniopg_56_error_code()

Return current error code as formatted string.

Returns:
str
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_maxiopg_31_configuration(configuration)

Change the configuration as formatted string.

Returns:
str
do_set_maxiopg_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()

Change setpoint temperature as formatted string.

Returns:
str
do_tk6_44_display_temperature()
do_tk6_45_display_temperature()
parse_message(msg)

Parse and return the result of the message.

Parameters:
msgbytes

The message to parse.

Returns:
replybytes

The reply of the command parsed.