poolmotion

This module is part of the Python Pool libray. It defines the class for a motion

Classes

PoolMotionItem

Inheritance diagram of PoolMotionItem
class PoolMotionItem(moveable, position, dial_position, do_backlash, backlash, instability_time=None)[source]

Bases: PoolActionItem

An item involved in the motion. Maps directly to a motor object

has_instability_time()[source]
in_motion()[source]
get_moveable()[source]
property moveable
get_state_info()[source]
start(new_state)[source]
stopped(timestamp)[source]
handle_instability(timestamp)[source]
on_state_switch(state_info, timestamp=None)[source]

PoolMotion

Inheritance diagram of PoolMotion
class PoolMotion(main_element, name='GlobalMotion')[source]

Bases: PoolAction

This class manages motion actions

pre_start_all(pool_ctrls)[source]
pre_start_one(moveables, items)[source]
start_one(moveables, motion_info)[source]
start_all(pool_ctrls, moveables, motion_info)[source]
start_action(*args, **kwargs)[source]

kwargs[‘items’] is a dict<moveable, (pos, dial, do_backlash, backlash)

backlash_item(motion_item)[source]
action_loop()[source]

Action loop for this action. Default implementation raises NotImplementedError

Raises:

NotImplementedError

read_dial_position(ret=None, serial=False)[source]
raw_read_dial_position(ret=None, serial=False)[source]

Enumerations

MotionState = Enumeration('MotionSate', ['Stopped', 'Moving', 'MovingBacklash', 'MovingInstability', 'Invalid'])

enumeration representing possible motion states