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.
Loading...
Searching...
No Matches
microscope.controllers.toptica._iChromeLaserConnection Class Reference

Public Member Functions

None __init__ (self, _iChromeConnection conn, int laser_number)
 
str get_label (self)
 
str get_type (self)
 
int get_delay (self)
 
bool get_enable (self)
 
None set_enable (self, bool state)
 
bool get_cw (self)
 
None set_cw (self, bool state)
 
bool get_use_ttl (self)
 
None set_use_ttl (self, bool state)
 
float get_level (self)
 
None set_level (self, float level)
 
str get_status_txt (self)
 

Detailed Description

Definition at line 108 of file toptica.py.

Constructor & Destructor Documentation

◆ __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 # We Need to confirm that indeed there is a laser at this
114 # position. There is no command to check this, we just try to
115 # read a parameter and check if it works.
116 try:
117 self.get_label()
118 except microscope.DeviceError as ex:
120 "failed to get label, probably no laser %d" % laser_number
121 ) from ex
122

Member Function Documentation

◆ 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

The documentation for this class was generated from the following file: