![]() |
BioImager
3.9.1
A .NET microscopy imaging library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include PriorĀ® & ZeissĀ® & all devices supported by Micromanager 2.0 and python-microscope.
|
Public Member Functions | |
| def | __init__ (self, **kwargs) |
Static Public Member Functions | |
| def | lock_comms (func) |
Public Attributes | |
| connection | |
Mixin for devices that are controlled via serial. DEPRECATED: turns out that this was a bad idea. A device that has a serial connection is not a serial connection. The "has a" and the not "is a" should have told us that we should have been using composition instead of subclassing, but there you go. Currently handles the flushing and locking of the comms channel until a command has finished, and the passthrough to the serial channel.
| def microscope.abc.SerialDeviceMixin.__init__ | ( | self, | |
| ** | kwargs | ||
| ) |
Definition at line 1007 of file abc.py.
|
static |
Decorator to flush input buffer and lock communications. There have been problems with the DeepStar lasers returning junk characters after the expected response, so it is advisable to flush the input buffer prior to running a command and subsequent readline. It also locks the comms channel so that a function must finish all its communications before another can run.
Definition at line 1030 of file abc.py.
References microscope.abc.SerialDeviceMixin._comms_lock, microscope.abc.SerialDeviceMixin.connection, microscope.filterwheels.thorlabs.ThorlabsFilterWheel.connection, microscope.lights.cobolt.CoboltLaser.connection, microscope.lights.deepstar.DeepstarLaser.connection, microscope.lights.obis.ObisLaser.connection, and microscope.lights.sapphire.SapphireLaser.connection.
| microscope.abc.SerialDeviceMixin.connection |
Definition at line 1013 of file abc.py.
Referenced by microscope.filterwheels.thorlabs.ThorlabsFilterWheel.__init__(), microscope.lights.cobolt.CoboltLaser.get_status(), microscope.lights.cobolt.CoboltLaser.initialize(), microscope.lights.sapphire.SapphireLaser.initialize(), and microscope.abc.SerialDeviceMixin.lock_comms().