poolmotorgroup

This module is part of the Python Pool library. It defines the base classes for

Classes

PoolMotorGroup

Inheritance diagram of PoolMotorGroup

class PoolMotorGroup(**kwargs)[source]

Bases: sardana.pool.poolgroupelement.PoolGroupElement

on_change(evt_src, evt_type, evt_value)
on_element_changed(evt_src, evt_type, evt_value)
add_user_element(element, index=None)
get_position_attribute()
get_low_level_physical_position_attribute_iterator()
get_physical_position_attribute_iterator()
get_physical_positions_attribute_sequence()
get_physical_positions_attribute_map()
get_position(cache=True, propagate=1)

Returns the user position.

Parameters:
  • cache (bool) – if True (default) return value in cache, otherwise read value from hardware
  • propagate (int) – 0 for not propagating, 1 to propagate, 2 propagate with priority
Returns:

the user position

Return type:

SardanaAttribute

set_position(positions)

Moves the motor group to the specified user positions

Parameters:positions (sequence< Number >) – the user positions to move to
set_write_position(w_position, timestamp=None, propagate=1)

Sets a new write value for the user position.

Parameters:
  • w_position (sequence< Number >) – the new write value for user position
  • propagate (int) – 0 for not propagating, 1 to propagate, 2 propagate with priority
position

motor group positions

get_default_attribute()
get_motion()
motion

motion object

calculate_motion(new_positions, items=None)
start_move(new_position)