mesoSPIM.src.devices.lasers package

Submodules

mesoSPIM.src.devices.lasers.Demo_LaserEnabler module

class mesoSPIM.src.devices.lasers.Demo_LaserEnabler.Demo_LaserEnabler(laserdict)[source]

Bases: object

disable(laser)[source]
disable_all()[source]
enable(laser)[source]
enable_all()[source]
state()[source]

mesoSPIM.src.devices.lasers.mesoSPIM_LaserEnabler module

mesoSPIM Module for enabling single laser lines via NI-DAQmx

Authors: Fabian Voigt, Nikita Vladimirov

class mesoSPIM.src.devices.lasers.mesoSPIM_LaserEnabler.mesoSPIM_LaserEnabler(laserdict)[source]

Bases: object

Class for interacting with the laser enable DO lines via NI-DAQmx This uses the property of NI-DAQmx-outputs to keep their last digital state or analog voltage for as long the device is not powered down. This means that the NI tasks are closed after calls to “enable”, “disable”, etc which in turn means that this class is not intended for fast switching in complicated waveforms. Needs a dictionary which combines laser wavelengths and device outputs in the form: {‘488 nm’: ‘PXI1Slot4/port0/line2’, ‘515 nm’: ‘PXI1Slot4/port0/line3’}

disable_all()[source]

Disables all laser lines.

enable(laser)[source]

Enables a single laser line. All other lines are switched off.

state()[source]

Returns laserline if a laser is on, otherwise “False”

Module contents