![]() |
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, *args, **kwargs) |
| def | open (self) |
| def | close (self) |
| def | handle (self, command) |
| def | write (self, data) |
| def | read (self, size=1) |
| def | readline (self, size=-1) |
| def | reset_input_buffer (self) |
| def | reset_output_buffer (self) |
Public Attributes | |
| in_buffer | |
| out_buffer | |
| out_pending_bytes | |
| out_parsed_bytes | |
| in_read_bytes | |
Base class to mock devices controlled via serial. It has two :class:`io.BytesIO` buffers. One :func:`write`s the output buffer and the other :func:`read`s the input buffer. After a write, the output buffer is analysed for a command. If there is a command, stuff gets done. This usually means adding to the input buffer and changing state of the device.
Definition at line 38 of file mock_devices.py.
| def microscope.testsuite.mock_devices.SerialMock.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs | ||
| ) |
Definition at line 49 of file mock_devices.py.
| def microscope.testsuite.mock_devices.SerialMock.close | ( | self | ) |
Definition at line 65 of file mock_devices.py.
| def microscope.testsuite.mock_devices.SerialMock.handle | ( | self, | |
| command | |||
| ) |
Definition at line 69 of file mock_devices.py.
Referenced by microscope.cameras._SDK3Cam.SDK3Camera.__init__(), microscope.cameras.pvcam.PVCamera.abort(), microscope.cameras.andorsdk3.AndorSDK3.get_id(), microscope.cameras.andorsdk3.AndorSDK3.initialize(), microscope.cameras.pvcam.PVCamera.initialize(), microscope.cameras.andorsdk3.AndorSDK3.invalidate_buffers(), microscope.cameras.pvcam.PVCamera.set_trigger(), and microscope.cameras.pvcam.PVCamera.soft_trigger().
| def microscope.testsuite.mock_devices.SerialMock.open | ( | self | ) |
Definition at line 62 of file mock_devices.py.
| def microscope.testsuite.mock_devices.SerialMock.read | ( | self, | |
size = 1 |
|||
| ) |
Definition at line 93 of file mock_devices.py.
| def microscope.testsuite.mock_devices.SerialMock.readline | ( | self, | |
size = -1 |
|||
| ) |
Definition at line 96 of file mock_devices.py.
Referenced by microscope.controllers.prior._ProScanIIIConnection.get_command(), microscope.stages.ludl._LudlController.get_command(), and microscope.stages.ludl._LudlController.readline().
| def microscope.testsuite.mock_devices.SerialMock.reset_input_buffer | ( | self | ) |
Definition at line 99 of file mock_devices.py.
| def microscope.testsuite.mock_devices.SerialMock.reset_output_buffer | ( | self | ) |
Definition at line 103 of file mock_devices.py.
| def microscope.testsuite.mock_devices.SerialMock.write | ( | self, | |
| data | |||
| ) |
Definition at line 72 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.in_buffer |
Definition at line 51 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.in_read_bytes |
Definition at line 60 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.out_buffer |
Definition at line 52 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.out_parsed_bytes |
Definition at line 57 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.out_pending_bytes |
Definition at line 56 of file mock_devices.py.