![]() |
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, 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) |
Protected Attributes | |
| _serial = microscope._utils.SharedSerial(serial_conn) | |
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.
| 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.
| None microscope.lights.toptica._iBeamConnection.laser_off | ( | self | ) |
Deactivate LD driver.
Definition at line 166 of file toptica.py.
| None microscope.lights.toptica._iBeamConnection.laser_on | ( | self | ) |
Activate LD driver.
Definition at line 162 of file toptica.py.
| 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.
| 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.
| 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.
|
protected |
Definition at line 82 of file toptica.py.