![]() |
BioImager
4.9.0
A .NET microscopy imaging application based on Bio library. Supports various microscopes by using imported libraries & GUI automation. Supports XInput game controllers to move stage, take images, run ImageJ macros on images or Bio C# scripts.
|
Public Member Functions | |
| __init__ (self, com=None, baud=19200, timeout=0.5, **kwargs) | |
| send (self, command) | |
| clearFault (self) | |
| flush_buffer (self) | |
| get_status (self) | |
| initialize (self) | |
| disable (self) | |
| get_is_on (self) | |
Public Member Functions inherited from microscope._utils.OnlyTriggersBulbOnSoftwareMixin | |
| microscope.TriggerType | trigger_type (self) |
| microscope.TriggerMode | trigger_mode (self) |
| None | set_trigger (self, microscope.TriggerType ttype, microscope.TriggerMode tmode) |
Public Member Functions inherited from microscope.abc.TriggerTargetMixin | |
| None | trigger (self) |
Public Member Functions inherited from microscope.abc.SerialDeviceMixin | |
Public Member Functions inherited from microscope.abc.LightSource | |
| float | power (self) |
| None | power (self, float power) |
| float | get_set_power (self) |
Public Member Functions inherited from microscope.abc.Device | |
| None | __del__ (self) |
| bool | get_is_enabled (self) |
| None | enable (self) |
| None | shutdown (self) |
| None | add_setting (self, name, dtype, get_func, set_func, values, typing.Optional[typing.Callable[[], bool]] readonly=None) |
| get_setting (self, str name) | |
| get_all_settings (self) | |
| None | set_setting (self, str name, value) |
| describe_setting (self, str name) | |
| describe_settings (self) | |
| update_settings (self, incoming, bool init=False) | |
Public Attributes | |
| connection | |
Public Attributes inherited from microscope.abc.SerialDeviceMixin | |
| connection = None | |
Public Attributes inherited from microscope.abc.Device | |
| bool | enabled = False |
Static Public Attributes | |
| dict | laser_status |
Protected Member Functions | |
| _write (self, command) | |
| None | _do_shutdown (self) |
| _do_enable (self) | |
| _get_power_mw (self) | |
| _set_power_mw (self, mW) | |
| None | _do_set_power (self, float power) |
| float | _do_get_power (self) |
Protected Member Functions inherited from microscope._utils.OnlyTriggersBulbOnSoftwareMixin | |
| None | _do_trigger (self) |
Protected Member Functions inherited from microscope.abc.TriggerTargetMixin | |
Protected Member Functions inherited from microscope.abc.SerialDeviceMixin | |
| bytes | _readline (self) |
Protected Member Functions inherited from microscope.abc.LightSource | |
Protected Member Functions inherited from microscope.abc.Device | |
| _do_disable (self) | |
Protected Attributes | |
| _max_power_mw = float(self.send(b"?maxlp")) | |
| _min_power = float(self.send(b"?minlp")) / self._max_power_mw | |
Protected Attributes inherited from microscope.abc.SerialDeviceMixin | |
| _comms_lock = threading.RLock() | |
Protected Attributes inherited from microscope.abc.LightSource | |
| float | _set_point = 0.0 |
Protected Attributes inherited from microscope.abc.Device | |
| dict | _settings = {} |
Additional Inherited Members | |
Static Public Member Functions inherited from microscope.abc.SerialDeviceMixin | |
| lock_comms (func) | |
Coherent Sapphire laser. The Sapphire is a diode-pumped solid-state laser and only supports `TriggerMode.SOFTWARE`.
Definition at line 34 of file sapphire.py.
| microscope.lights.sapphire.SapphireLaser.__init__ | ( | self, | |
| com = None, | |||
| baud = 19200, | |||
| timeout = 0.5, | |||
| ** | kwargs ) |
Reimplemented from microscope.abc.SerialDeviceMixin.
Definition at line 55 of file sapphire.py.
|
protected |
Do any device specific work on enable. Subclasses should override this method, rather than modify `enable`.
Reimplemented from microscope.abc.Device.
Definition at line 153 of file sapphire.py.
|
protected |
Internal function that actually returns the light source power.
Reimplemented from microscope.abc.LightSource.
Definition at line 201 of file sapphire.py.
|
protected |
Internal function that actually sets the light source power. This function will be called by the `power` attribute setter after clipping the argument to the [0, 1] interval.
Reimplemented from microscope.abc.LightSource.
Definition at line 194 of file sapphire.py.
|
protected |
Private method - actual shutdown of the device. Users should be calling :meth:`shutdown` and not this method. Concrete implementations should implement this method instead of `shutdown`.
Reimplemented from microscope.abc.Device.
Definition at line 141 of file sapphire.py.
|
protected |
Definition at line 183 of file sapphire.py.
|
protected |
Definition at line 187 of file sapphire.py.
|
protected |
Send a command to the device. This is not a simple passthrough to ``serial.Serial.write``, it will append ``b'\\r\\n'`` to command. Override this method if a device requires a specific format.
Reimplemented from microscope.abc.SerialDeviceMixin.
Definition at line 85 of file sapphire.py.
| microscope.lights.sapphire.SapphireLaser.clearFault | ( | self | ) |
Definition at line 99 of file sapphire.py.
| microscope.lights.sapphire.SapphireLaser.disable | ( | self | ) |
Disable the device for a short period for inactivity.
Reimplemented from microscope.abc.Device.
Definition at line 173 of file sapphire.py.
| microscope.lights.sapphire.SapphireLaser.flush_buffer | ( | self | ) |
Definition at line 103 of file sapphire.py.
| microscope.lights.sapphire.SapphireLaser.get_is_on | ( | self | ) |
Return True if the light source is currently able to produce light.
Reimplemented from microscope.abc.LightSource.
Definition at line 179 of file sapphire.py.
| microscope.lights.sapphire.SapphireLaser.get_status | ( | self | ) |
Query and return the light source status.
Reimplemented from microscope.abc.LightSource.
Definition at line 109 of file sapphire.py.
| microscope.lights.sapphire.SapphireLaser.initialize | ( | self | ) |
Initialize the device. If devices have this method (not required, and many don't), then they should call it as part of the initialisation, i.e., they should call it on their `__init__` method.
Reimplemented from microscope.abc.Device.
Definition at line 148 of file sapphire.py.
| microscope.lights.sapphire.SapphireLaser.send | ( | self, | |
| command ) |
Send command and retrieve response.
Definition at line 93 of file sapphire.py.
|
protected |
Definition at line 80 of file sapphire.py.
|
protected |
Definition at line 81 of file sapphire.py.
| microscope.lights.sapphire.SapphireLaser.connection |
Definition at line 60 of file sapphire.py.
|
static |
Definition at line 46 of file sapphire.py.