Definition at line 108 of file toptica.py.
◆ __init__()
| None microscope.controllers.toptica._iChromeLaserConnection.__init__ |
( |
| self, |
|
|
_iChromeConnection | conn, |
|
|
int | laser_number ) |
Definition at line 109 of file toptica.py.
109 def __init__(self, conn: _iChromeConnection, laser_number: int) -> None:
110 self._conn = conn
111 self._param_prefix = b"laser%d:" % laser_number
112
113
114
115
116 try:
117 self.get_label()
120 "failed to get label, probably no laser %d" % laser_number
121 ) from ex
122
◆ _param_ref()
| bytes microscope.controllers.toptica._iChromeLaserConnection._param_ref |
( |
| self, |
|
|
bytes | name ) |
|
protected |
Definition at line 123 of file toptica.py.
123 def _param_ref(self, name: bytes) -> bytes:
124 return self._conn.param_ref(self._param_prefix + name)
125
◆ _param_set()
| None microscope.controllers.toptica._iChromeLaserConnection._param_set |
( |
| self, |
|
|
bytes | name, |
|
|
bytes | value ) |
|
protected |
Definition at line 126 of file toptica.py.
126 def _param_set(self, name: bytes, value: bytes) -> None:
127 self._conn.param_set(self._param_prefix + name, value)
128
◆ get_cw()
| bool microscope.controllers.toptica._iChromeLaserConnection.get_cw |
( |
| self | ) |
|
Definition at line 145 of file toptica.py.
145 def get_cw(self) -> bool:
146 return _parse_bool(self._param_ref(b"cw"))
147
◆ get_delay()
| int microscope.controllers.toptica._iChromeLaserConnection.get_delay |
( |
| self | ) |
|
Definition at line 135 of file toptica.py.
135 def get_delay(self) -> int:
136 return int(self._param_ref(b"delay"))
137
◆ get_enable()
| bool microscope.controllers.toptica._iChromeLaserConnection.get_enable |
( |
| self | ) |
|
Definition at line 138 of file toptica.py.
138 def get_enable(self) -> bool:
139 return _parse_bool(self._param_ref(b"enable"))
140
◆ get_label()
| str microscope.controllers.toptica._iChromeLaserConnection.get_label |
( |
| self | ) |
|
Definition at line 129 of file toptica.py.
129 def get_label(self) -> str:
130 return _parse_string(self._param_ref(b"label"))
131
◆ get_level()
| float microscope.controllers.toptica._iChromeLaserConnection.get_level |
( |
| self | ) |
|
Definition at line 159 of file toptica.py.
159 def get_level(self) -> float:
160 return float(self._param_ref(b"level"))
161
◆ get_status_txt()
| str microscope.controllers.toptica._iChromeLaserConnection.get_status_txt |
( |
| self | ) |
|
Definition at line 166 of file toptica.py.
166 def get_status_txt(self) -> str:
167 return _parse_string(self._param_ref(b"status-txt"))
168
169
◆ get_type()
| str microscope.controllers.toptica._iChromeLaserConnection.get_type |
( |
| self | ) |
|
Definition at line 132 of file toptica.py.
132 def get_type(self) -> str:
133 return _parse_string(self._param_ref(b"type"))
134
◆ get_use_ttl()
| bool microscope.controllers.toptica._iChromeLaserConnection.get_use_ttl |
( |
| self | ) |
|
Definition at line 152 of file toptica.py.
152 def get_use_ttl(self) -> bool:
153 return _parse_bool(self._param_ref(b"use-ttl"))
154
◆ set_cw()
| None microscope.controllers.toptica._iChromeLaserConnection.set_cw |
( |
| self, |
|
|
bool | state ) |
Definition at line 148 of file toptica.py.
148 def set_cw(self, state: bool) -> None:
149 value = b"#t" if state else b"#f"
150 self._param_set(b"cw", value)
151
◆ set_enable()
| None microscope.controllers.toptica._iChromeLaserConnection.set_enable |
( |
| self, |
|
|
bool | state ) |
Definition at line 141 of file toptica.py.
141 def set_enable(self, state: bool) -> None:
142 value = b"#t" if state else b"#f"
143 self._param_set(b"enable", value)
144
◆ set_level()
| None microscope.controllers.toptica._iChromeLaserConnection.set_level |
( |
| self, |
|
|
float | level ) |
Definition at line 162 of file toptica.py.
162 def set_level(self, level: float) -> None:
163 value = b"%.1f" % level
164 self._param_set(b"level", value)
165
◆ set_use_ttl()
| None microscope.controllers.toptica._iChromeLaserConnection.set_use_ttl |
( |
| self, |
|
|
bool | state ) |
Definition at line 155 of file toptica.py.
155 def set_use_ttl(self, state: bool) -> None:
156 value = b"#t" if state else b"#f"
157 self._param_set(b"use-ttl", value)
158
◆ _conn
| microscope.controllers.toptica._iChromeLaserConnection._conn = conn |
|
protected |
◆ _param_prefix
| str microscope.controllers.toptica._iChromeLaserConnection._param_prefix = b"laser%d:" % laser_number |
|
protected |
The documentation for this class was generated from the following file:
- BioImager/PythonMicroscope/microscope/controllers/toptica.py