msl.equipment.resources.thorlabs.kinesis.callbacks module
A callback to register for a MotionControl
message queue.
from msl.equipment import Config
from msl.equipment.resources.thorlabs import MotionControlCallback
@MotionControlCallback
def msg_callback():
print('MotionControlCallback: ', flipper.convert_message(*flipper.get_next_message()))
# The "example2.xml" configuration file contains the following element:
# <equipment alias="filter_flipper" manufacturer="Thorlabs" model="MFF101/M"/>
db = Config('config.xml').database()
flipper = db.equipment['filter_flipper'].connect()
flipper.register_message_callback(msg_callback)
# ... do stuff with the `flipper` ...
- msl.equipment.resources.thorlabs.kinesis.callbacks.MotionControlCallback
A callback to register for a
MotionControl
message queue.