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: PoolGroupElement

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

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

Return type:

SardanaAttribute

Returns:

the user position

set_position(positions)[source]

Moves the motor group to the specified user positions

Parameters:

positions (Sequence[float]) – the user positions to move to

Return type:

None

set_write_position(w_position, timestamp=None, propagate=1)[source]

Sets a new write value for the user position.

Parameters:
  • w_position (Sequence[float]) – the new write value for user position

  • propagate (int) – 0 for not propagating, 1 to propagate, 2 propagate with priority

Return type:

None

property position: SardanaAttribute

motor group positions

get_default_attribute()[source]
get_motion()[source]
property motion

motion object

calculate_motion(new_positions, items=None)[source]
start_move(new_position)[source]