Table Of Contents

Previous topic

poolmonitor

Next topic

poolmotor

This Page

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: sardana.pool.poolaction.PoolActionItem

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

has_instability_time()[source]
in_motion()[source]
get_moveable()[source]
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: sardana.pool.poolaction.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(*args, **kwargs)[source]
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'])

MotionSate enumeration. Possible values are:

  • Stopped (0)
  • Moving (1)
  • MovingBacklash (2)
  • MovingInstability (3)
  • Invalid (4)