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.LightSource Class Reference
Inheritance diagram for microscope.abc.LightSource:
microscope.abc.TriggerTargetMixin microscope.abc.Device 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

def __init__ (self, **kwargs)
 
typing.List[str] get_status (self)
 
bool get_is_on (self)
 
float power (self)
 
None power (self, float power)
 
float get_set_power (self)
 
- Public Member Functions inherited from microscope.abc.TriggerTargetMixin
microscope.TriggerMode trigger_mode (self)
 
microscope.TriggerType trigger_type (self)
 
None set_trigger (self, microscope.TriggerType ttype, microscope.TriggerMode tmode)
 
None trigger (self)
 
- Public Member Functions inherited from microscope.abc.Device
None __init__ (self)
 
None __del__ (self)
 
bool get_is_enabled (self)
 
None disable (self)
 
None enable (self)
 
None initialize (self)
 
None shutdown (self)
 
None add_setting (self, name, dtype, get_func, set_func, values, typing.Optional[typing.Callable[[], bool]] readonly=None)
 
def get_setting (self, str name)
 
def get_all_settings (self)
 
None set_setting (self, str name, value)
 
def describe_setting (self, str name)
 
def describe_settings (self)
 
def update_settings (self, incoming, bool init=False)
 

Additional Inherited Members

- Public Attributes inherited from microscope.abc.Device
 enabled
 

Detailed Description

Light source such as lasers or LEDs.

Light sources often, possibly always, only support the
`TriggerMode.BULB`.  In this context, the trigger type changes
what happens when `enable` is called.  `TriggerType.SOFTWARE`
means that `enable` will make the device emit light immediately,
and disable will make the device stop emit light.

`TriggerType.HIGH` or `TriggerType.LOW` means that `enable` will
set and unset the laser such that it only emits light while
receiving a high or low TTL, or digital, input signal.

Definition at line 1185 of file abc.py.

Constructor & Destructor Documentation

◆ __init__()

def microscope.abc.LightSource.__init__ (   self,
**  kwargs 
)

Reimplemented from microscope.abc.Device.

Definition at line 1201 of file abc.py.

1201 def __init__(self, **kwargs):
1202 super().__init__(**kwargs)
1203 self._set_point = 0.0
1204

Member Function Documentation

◆ get_is_on()

◆ get_set_power()

float microscope.abc.LightSource.get_set_power (   self)
Return the power set point.

Definition at line 1246 of file abc.py.

1246 def get_set_power(self) -> float:
1247 """Return the power set point."""
1248 return self._set_point
1249
1250

References microscope.abc.LightSource._set_point.

◆ get_status()

◆ power() [1/2]

◆ power() [2/2]

None microscope.abc.LightSource.power (   self,
float  power 
)
Light source power in the [0, 1] interval.

The power value will be clipped to [0, 1] interval.

Definition at line 1237 of file abc.py.

1237 def power(self, power: float) -> None:
1238 """Light source power in the [0, 1] interval.
1239
1240 The power value will be clipped to [0, 1] interval.
1241 """
1242 clipped_power = max(min(power, 1.0), 0.0)
1243 self._do_set_power(clipped_power)
1244 self._set_point = clipped_power
1245

References microscope.abc.LightSource._do_set_power(), microscope.controllers.coolled._CoolLEDChannel._do_set_power(), microscope.controllers.lumencor._SpectraIIILightChannel._do_set_power(), microscope.controllers.toptica._iChromeLaser._do_set_power(), microscope.controllers.zaber._ZaberLED._do_set_power(), microscope.lights.cobolt.CoboltLaser._do_set_power(), microscope.lights.deepstar.DeepstarLaser._do_set_power(), microscope.lights.obis.ObisLaser._do_set_power(), microscope.lights.sapphire.SapphireLaser._do_set_power(), microscope.lights.toptica.TopticaiBeam._do_set_power(), microscope.simulators.SimulatedLightSource._do_set_power(), and microscope.abc.LightSource._set_point.


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