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.
Loading...
Searching...
No Matches
microscope.abc.TriggerTargetMixin Class Reference
Inheritance diagram for microscope.abc.TriggerTargetMixin:
microscope._utils.OnlyTriggersBulbOnSoftwareMixin microscope._utils.OnlyTriggersOnceOnSoftwareMixin microscope.abc.Camera microscope.abc.DeformableMirror microscope.abc.LightSource microscope.controllers.lumencor._SpectraIIILightChannel microscope.controllers.zaber._ZaberLED microscope.lights.cobolt.CoboltLaser microscope.lights.sapphire.SapphireLaser microscope.lights.toptica.TopticaiBeam microscope.simulators.SimulatedLightSource microscope.mirror.bmc.BMCDeformableMirror microscope.mirror.mirao52e.Mirao52e microscope.simulators.SimulatedCamera microscope.simulators.SimulatedDeformableMirror microscope.cameras.andorsdk3.AndorSDK3 microscope.cameras.atmcd.AndorAtmcd microscope.cameras.picam.PiCamera microscope.cameras.pvcam.PVCamera microscope.cameras.ximea.XimeaCamera microscope.simulators.SimulatedCamera microscope.mirror.alpao.AlpaoDeformableMirror microscope.mirror.bmc.BMCDeformableMirror microscope.mirror.mirao52e.Mirao52e microscope.simulators.SimulatedDeformableMirror microscope.controllers.coolled._CoolLEDChannel microscope.controllers.lumencor._SpectraIIILightChannel microscope.controllers.toptica._iChromeLaser microscope.controllers.zaber._ZaberLED microscope.lights.cobolt.CoboltLaser microscope.lights.deepstar.DeepstarLaser microscope.lights.obis.ObisLaser microscope.lights.sapphire.SapphireLaser microscope.lights.toptica.TopticaiBeam microscope.simulators.SimulatedLightSource

Public Member Functions

microscope.TriggerMode trigger_mode (self)
 
microscope.TriggerType trigger_type (self)
 
None set_trigger (self, microscope.TriggerType ttype, microscope.TriggerMode tmode)
 
None trigger (self)
 

Protected Member Functions

None _do_trigger (self)
 

Detailed Description

Mixin for a device that may be the target of a hardware trigger.

.. todo::

    Need some way to retrieve the supported trigger types and
    modes.  This is not just two lists, one for types and another
    for modes, because some modes can only be used with certain
    types and vice-versa.

Definition at line 224 of file abc.py.

Member Function Documentation

◆ _do_trigger()

None microscope.abc.TriggerTargetMixin._do_trigger ( self)
protected
Actual trigger of the device.

Classes implementing this interface should implement this
method instead of `trigger`.

Reimplemented in microscope._utils.OnlyTriggersBulbOnSoftwareMixin, microscope.abc.DeformableMirror, microscope.cameras.andorsdk3.AndorSDK3, microscope.cameras.atmcd.AndorAtmcd, microscope.cameras.picam.PiCamera, microscope.cameras.pvcam.PVCamera, microscope.cameras.ximea.XimeaCamera, microscope.controllers.coolled._CoolLEDChannel, microscope.controllers.toptica._iChromeLaser, microscope.lights.deepstar.DeepstarLaser, microscope.lights.obis.ObisLaser, and microscope.simulators.SimulatedCamera.

Definition at line 254 of file abc.py.

254 def _do_trigger(self) -> None:
255 """Actual trigger of the device.
256
257 Classes implementing this interface should implement this
258 method instead of `trigger`.
259
260 """
261 raise NotImplementedError()
262

◆ set_trigger()

◆ trigger()

None microscope.abc.TriggerTargetMixin.trigger ( self)
Trigger device.

The actual effect is device type dependent.  For example, on a
`Camera` it triggers image acquisition while on a
`DeformableMirror` it applies a queued pattern.  See
documentation for the devices implementing this interface for
details.

Raises:
    microscope.IncompatibleStateError: if trigger type is not
        set to `TriggerType.SOFTWARE`.

Reimplemented in microscope.abc.DeformableMirror.

Definition at line 263 of file abc.py.

263 def trigger(self) -> None:
264 """Trigger device.
265
266 The actual effect is device type dependent. For example, on a
267 `Camera` it triggers image acquisition while on a
268 `DeformableMirror` it applies a queued pattern. See
269 documentation for the devices implementing this interface for
270 details.
271
272 Raises:
273 microscope.IncompatibleStateError: if trigger type is not
274 set to `TriggerType.SOFTWARE`.
275
276 """
277 if self.trigger_type is not microscope.TriggerType.SOFTWARE:
279 "trigger type is not software"
280 )
281 _logger.debug("trigger by software")
282 self._do_trigger()
283
284

◆ trigger_mode()

microscope.TriggerMode microscope.abc.TriggerTargetMixin.trigger_mode ( self)

Definition at line 238 of file abc.py.

238 def trigger_mode(self) -> microscope.TriggerMode:
239 raise NotImplementedError()
240

◆ trigger_type()

microscope.TriggerType microscope.abc.TriggerTargetMixin.trigger_type ( self)

Definition at line 243 of file abc.py.

243 def trigger_type(self) -> microscope.TriggerType:
244 raise NotImplementedError()
245

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