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.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)
 

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

◆ 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

References microscope._utils.OnlyTriggersBulbOnSoftwareMixin._do_trigger(), microscope.abc.TriggerTargetMixin._do_trigger(), microscope.abc.DeformableMirror._do_trigger(), microscope.cameras.andorsdk3.AndorSDK3._do_trigger(), microscope.cameras.atmcd.AndorAtmcd._do_trigger(), microscope.cameras.picam.PiCamera._do_trigger(), microscope.cameras.pvcam.PVCamera._do_trigger(), microscope.cameras.ximea.XimeaCamera._do_trigger(), microscope.controllers.coolled._CoolLEDChannel._do_trigger(), microscope.controllers.toptica._iChromeLaser._do_trigger(), microscope.lights.deepstar.DeepstarLaser._do_trigger(), microscope.lights.obis.ObisLaser._do_trigger(), microscope.simulators.SimulatedCamera._do_trigger(), microscope._utils.OnlyTriggersOnceOnSoftwareMixin.trigger_type(), microscope._utils.OnlyTriggersBulbOnSoftwareMixin.trigger_type(), microscope.abc.TriggerTargetMixin.trigger_type(), microscope.cameras.andorsdk3.AndorSDK3.trigger_type(), microscope.cameras.atmcd.AndorAtmcd.trigger_type(), microscope.cameras.picam.PiCamera.trigger_type(), microscope.cameras.pvcam.PVCamera.trigger_type(), microscope.cameras.ximea.XimeaCamera.trigger_type(), microscope.controllers.coolled._CoolLEDChannel.trigger_type(), microscope.controllers.toptica._iChromeLaser.trigger_type(), microscope.lights.deepstar.DeepstarLaser.trigger_type(), microscope.lights.obis.ObisLaser.trigger_type(), and microscope.mirror.alpao.AlpaoDeformableMirror.trigger_type().

Referenced by microscope.clients.DataClient.enable(), microscope.cameras.ximea.XimeaCamera.get_cycle_time(), microscope.simulators.SimulatedCamera.get_cycle_time(), microscope.abc.DataDevice.grab_next_data(), microscope.abc.DeformableMirror.next_pattern(), microscope.cameras.atmcd.AndorAtmcd.soft_trigger(), and microscope.cameras.pvcam.PVCamera.soft_trigger().

◆ 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

Referenced by microscope.cameras.picam.PiCamera.__init__(), and microscope.cameras.ximea.XimeaCamera.__init__().

◆ 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

Referenced by microscope.cameras.ximea.XimeaCamera.__init__(), microscope.abc.DeformableMirror.apply_pattern(), and microscope.abc.TriggerTargetMixin.trigger().


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