mesoSPIM.src.devices.filter_wheels package

Subpackages

Submodules

mesoSPIM.src.devices.filter_wheels.mesoSPIM_FilterWheel module

mesoSPIM Filterwheel classes Authors: Fabian Voigt, Nikita Vladimirov

class mesoSPIM.src.devices.filter_wheels.mesoSPIM_FilterWheel.DynamixelFilterWheel(*args: Any, **kwargs: Any)[source]

Bases: Dynamixel

set_filter(filter, wait_until_done=False)[source]

Changes filter after checking that the commanded value exists

class mesoSPIM.src.devices.filter_wheels.mesoSPIM_FilterWheel.LudlFilterWheel(*args: Any, **kwargs: Any)[source]

Bases: QObject

Class to control a 10-position Ludl filterwheel

Needs a dictionary which combines filter designations and position IDs in the form:

filters = {‘405-488-647-Tripleblock’0,

‘405-488-561-640-Quadrupleblock’: 1, ‘464 482-35’: 2, ‘508 520-35’: 3, ‘515LP’:4, ‘529 542-27’:5, ‘561LP’:6, ‘594LP’:7, ‘Empty’:8,}

If there are tuples instead of integers as values, the filterwheel is assumed to be a double wheel.

I.e.: ‘508 520-35’: (2,3)

set_filter(filter, wait_until_done=False)[source]

Moves filter using the pyserial command set. No checks are done whether the movement is completed or finished in time.

wait_until_done_delay

If the first entry of the filterdict has a tuple as value, it is assumed that it is a double-filterwheel to change the serial commands accordingly.

TODO: This doesn’t check that the tuple has length 2.

class mesoSPIM.src.devices.filter_wheels.mesoSPIM_FilterWheel.SutterLambda10BFilterWheel(comport, filterdict, baudrate=9600, read_on_init=True)[source]

Bases: object

close()[source]
double_wheel

Delay in s for the wait until done function

read(num_bytes)[source]
set_filter(filterposition=0, speed=0, wait_until_done=False)[source]
class mesoSPIM.src.devices.filter_wheels.mesoSPIM_FilterWheel.ZwoFilterWheel(*args: Any, **kwargs: Any)[source]

Bases: QObject

Astronomy filter wheels from https://astronomy-imaging-camera.com

set_filter(filter, wait_until_done=False)[source]
class mesoSPIM.src.devices.filter_wheels.mesoSPIM_FilterWheel.mesoSPIM_DemoFilterWheel(*args: Any, **kwargs: Any)[source]

Bases: QObject

set_filter(filter, wait_until_done=False)[source]

Module contents