![]() |
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 | |
| None | __init__ (self, com, baud=115200, timeout=0.5, **kwargs) |
| get_status (self) | |
| initialize (self) | |
| get_is_on (self) | |
| 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.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.TriggerTargetMixin | |
| None | trigger (self) |
Public Member Functions inherited from microscope.abc.Device | |
| None | __del__ (self) |
| bool | get_is_enabled (self) |
| None | disable (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 |
Protected Member Functions | |
| _write (self, command) | |
| _readline (self) | |
| _flush_handshake (self) | |
| _do_enable (self) | |
| None | _do_shutdown (self) |
| _do_disable (self) | |
| _get_power_mw (self) | |
| _set_power_mw (self, mw) | |
| None | _do_set_power (self, float power) |
| float | _do_get_power (self) |
| None | _do_trigger (self) |
Protected Member Functions inherited from microscope.abc.SerialDeviceMixin | |
Protected Member Functions inherited from microscope.abc.LightSource | |
Protected Member Functions inherited from microscope.abc.TriggerTargetMixin | |
Protected Member Functions inherited from microscope.abc.Device | |
Protected Attributes | |
| float | _max_power_mw = float(response) * 1000.0 |
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) | |
| None microscope.lights.obis.ObisLaser.__init__ | ( | self, | |
| com, | |||
| baud = 115200, | |||
| timeout = 0.5, | |||
| ** | kwargs ) |
Reimplemented from microscope.abc.SerialDeviceMixin.
Definition at line 34 of file obis.py.
|
protected |
Turn the laser OFF. Return True if we succeeded, False otherwise.
Reimplemented from microscope.abc.Device.
Definition at line 152 of file obis.py.
|
protected |
Turn the laser ON. Return True if we succeeded, False otherwise.
Reimplemented from microscope.abc.Device.
Definition at line 109 of file obis.py.
|
protected |
Internal function that actually returns the light source power.
Reimplemented from microscope.abc.LightSource.
Definition at line 191 of file obis.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 188 of file obis.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 129 of file obis.py.
|
protected |
Actual trigger of the device. Classes implementing this interface should implement this method instead of `trigger`.
Reimplemented from microscope.abc.TriggerTargetMixin.
Definition at line 214 of file obis.py.
|
protected |
|
protected |
|
protected |
Read a line from connection without leading and trailing whitespace. We override from SerialDeviceMixin
Reimplemented from microscope.abc.SerialDeviceMixin.
Definition at line 79 of file obis.py.
|
protected |
|
protected |
Send a command.
Reimplemented from microscope.abc.SerialDeviceMixin.
Definition at line 74 of file obis.py.
| microscope.lights.obis.ObisLaser.get_is_on | ( | self | ) |
Return True if the laser is currently able to produce light.
Reimplemented from microscope.abc.LightSource.
Definition at line 166 of file obis.py.
| microscope.lights.obis.ObisLaser.get_status | ( | self | ) |
Query and return the light source status.
Reimplemented from microscope.abc.LightSource.
Definition at line 94 of file obis.py.
| microscope.lights.obis.ObisLaser.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 141 of file obis.py.
| None microscope.lights.obis.ObisLaser.set_trigger | ( | self, | |
| microscope.TriggerType | ttype, | ||
| microscope.TriggerMode | tmode ) |
Set device for a specific trigger.
Reimplemented from microscope.abc.TriggerTargetMixin.
Definition at line 202 of file obis.py.
| microscope.TriggerMode microscope.lights.obis.ObisLaser.trigger_mode | ( | self | ) |
Reimplemented from microscope.abc.TriggerTargetMixin.
Definition at line 199 of file obis.py.
| microscope.TriggerType microscope.lights.obis.ObisLaser.trigger_type | ( | self | ) |
Reimplemented from microscope.abc.TriggerTargetMixin.
Definition at line 195 of file obis.py.
|
protected |
| microscope.lights.obis.ObisLaser.connection |