microscope.lasers.obis module

class microscope.lasers.obis.ObisLaser(com, baud=115200, timeout=0.5, **kwargs)[source]

Bases: microscope.devices.SerialDeviceMixIn, microscope.devices.LaserDevice

_readline()[source]

Read a line from connection without leading and trailing whitespace. We override from serialDeviceMixIn

_write(command)[source]

Send a command.

disable()[source]

Turn the laser OFF. Return True if we succeeded, False otherwise.

enable()[source]

Turn the laser ON. Return True if we succeeded, False otherwise.

get_is_on()[source]

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

get_max_power_mw()[source]

Gets the maximum laser power in mW.

get_min_power_mw()[source]

Return the min power in mW.

get_power_mw()[source]

“” Return the current power in mW.

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.