microscope.lasers.sapphire module

class microscope.lasers.sapphire.SapphireLaser(com=None, baud=19200, timeout=0.5, **kwargs)[source]

Bases: microscope.abc.SerialDeviceMixin, microscope.abc.Laser

clearFault()[source]
disable()[source]

Disable the device for a short period for inactivity.

flush_buffer()[source]
get_is_on()[source]

Return True if the laser is currently able to produce light.

get_status()[source]

Query and return the laser status.

initialize()[source]

Initialize the device.

is_alive()[source]

Query if device is alive and we can send messages.

laser_status = {b'1': 'Start up', b'2': 'Warmup', b'3': 'Standby', b'4': 'Laser on', b'5': 'Laser ready', b'6': 'Error'}
send(command)[source]

Send command and retrieve response.