poolpseudocounter¶
This module is part of the Python Pool library. It defines the PoolPseudoCounter class
Classes
PoolPseudoCounter¶
-
class
PoolPseudoCounter(**kwargs)[source]¶ Bases:
sardana.pool.poolbasegroup.PoolBaseGroup,sardana.pool.poolbasechannel.PoolBaseChannelA class representing a Pseudo Counter in the Sardana Device Pool
-
ValueAttributeClass¶ alias of
Value
-
AcquisitionClass= None¶
-
siblings¶ the siblings for this pseudo counter
-
get_physical_values(cache=True, propagate=1)[source]¶ Get value for underlying elements.
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 physical value
Return type: dict <PoolElement,
SardanaAttribute>- cache (bool) – if
-
get_siblings_values(use=None)[source]¶ Get the last values for all siblings.
Parameters: use (dict <PoolElement, SardanaValue>) – the already calculated values. If a sibling is in this dictionary, the value stored here is used insteadReturns: a dictionary with siblings values Return type: dict <PoolElement, value(float?) >
-
get_value(cache=True, propagate=1)[source]¶ Returns the pseudo counter value.
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 pseudo counter value
Return type: - cache (bool) – if
-
value¶ pseudo counter value
-