![]() |
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, str port) |
| bytes | command (self, bytes command) |
| None | laser_on (self) |
| None | laser_off (self) |
| None | set_normal_channel_power (self, float power) |
| float | show_power_uW (self) |
| bytes | status_laser (self) |
| float | show_max_power (self) |
Connection to a specific Toptica iBeam smart laser.
This class wraps the serial connection to the device, and provides
access to some of its commands performing most of the parsing and
validation.
Args:
port: port name (Windows) or path to port (everything else) to
connect to. For example, `/dev/ttyS1`, `COM1`, or
`/dev/cuad1`.
Definition at line 51 of file toptica.py.
| def microscope.lights.toptica._iBeamConnection.__init__ | ( | self, | |
| str | port | ||
| ) |
Definition at line 65 of file toptica.py.
| bytes microscope.lights.toptica._iBeamConnection.command | ( | self, | |
| bytes | command | ||
| ) |
Run command and return answer after minimal validation.
The output of a command has the format::
\r\nANSWER\r\n[OK]\r\n
The returned bytes only include `ANSWER` without its own final
`\r\n`. This means that the return value might be an empty
array of bytes.
Definition at line 114 of file toptica.py.
References microscope._utils.SharedSerial._serial, microscope.controllers.coolled._CoolLEDConnection._serial, microscope.controllers.lumencor._SpectraIIIConnection._serial, microscope.controllers.prior._ProScanIIIConnection._serial, microscope.controllers.toptica._iChromeConnection._serial, microscope.controllers.zaber._ZaberConnection._serial, microscope.lights.toptica._iBeamConnection._serial, and microscope.stages.ludl._LudlController._serial.
Referenced by microscope.controllers.zaber._ZaberDeviceConnection.been_homed(), microscope.controllers.zaber._ZaberDeviceConnection.command(), microscope.controllers.zaber._ZaberDeviceConnection.get_absolute_position(), microscope.controllers.prior._ProScanIIIConnection.get_command(), microscope.stages.ludl._LudlController.get_command(), microscope.controllers.zaber._ZaberDeviceConnection.get_current_index(), microscope.controllers.prior._ProScanIIIConnection.get_description(), microscope.stages.ludl._LudlController.get_description(), microscope.controllers.zaber._ZaberDeviceConnection.get_index_distance(), microscope.controllers.zaber._ZaberDeviceConnection.get_limit_max(), microscope.controllers.zaber._ZaberDeviceConnection.get_limit_min(), microscope.controllers.zaber._ZaberDeviceConnection.get_number_axes(), microscope.controllers.zaber._ZaberDeviceConnection.get_rotation_length(), microscope.controllers.zaber._ZaberDeviceConnection.home(), microscope.lights.toptica._iBeamConnection.laser_off(), microscope.lights.toptica._iBeamConnection.laser_on(), microscope.lights.toptica._iBeamConnection.set_normal_channel_power(), microscope.lights.toptica._iBeamConnection.show_power_uW(), and microscope.lights.toptica._iBeamConnection.status_laser().
| None microscope.lights.toptica._iBeamConnection.laser_off | ( | self | ) |
Deactivate LD driver.
Definition at line 166 of file toptica.py.
References microscope.controllers.prior._ProScanIIIConnection.command(), microscope.lights.toptica._iBeamConnection.command(), microscope.stages.ludl._LudlController.command(), and microscope.controllers.zaber._ZaberDeviceConnection.command().
| None microscope.lights.toptica._iBeamConnection.laser_on | ( | self | ) |
Activate LD driver.
Definition at line 162 of file toptica.py.
References microscope.controllers.prior._ProScanIIIConnection.command(), microscope.lights.toptica._iBeamConnection.command(), microscope.stages.ludl._LudlController.command(), and microscope.controllers.zaber._ZaberDeviceConnection.command().
| None microscope.lights.toptica._iBeamConnection.set_normal_channel_power | ( | self, | |
| float | power | ||
| ) |
Set power in mW for channel 2 (normal operating level channel). We don't have channel number as an argument because we only want to be setting the power via channel 2 (channel 1 is the bias and we haven't seen a laser with a channel 3 yet).
Definition at line 170 of file toptica.py.
References microscope.controllers.prior._ProScanIIIConnection.command(), microscope.lights.toptica._iBeamConnection.command(), microscope.stages.ludl._LudlController.command(), and microscope.controllers.zaber._ZaberDeviceConnection.command().
| float microscope.lights.toptica._iBeamConnection.show_max_power | ( | self | ) |
Definition at line 192 of file toptica.py.
| float microscope.lights.toptica._iBeamConnection.show_power_uW | ( | self | ) |
Returns actual laser power in µW.
Definition at line 179 of file toptica.py.
References microscope.controllers.prior._ProScanIIIConnection.command(), microscope.lights.toptica._iBeamConnection.command(), microscope.stages.ludl._LudlController.command(), and microscope.controllers.zaber._ZaberDeviceConnection.command().
| bytes microscope.lights.toptica._iBeamConnection.status_laser | ( | self | ) |
Returns actual status of the LD driver (ON or OFF).
Definition at line 188 of file toptica.py.
References microscope.controllers.prior._ProScanIIIConnection.command(), microscope.lights.toptica._iBeamConnection.command(), microscope.stages.ludl._LudlController.command(), and microscope.controllers.zaber._ZaberDeviceConnection.command().