poolpseudocounter
This module is part of the Python Pool library. It defines the PoolPseudoCounter class
Classes
PoolPseudoCounter

- class PoolPseudoCounter(**kwargs)[source]
Bases:
PoolBaseGroup
,PoolBaseChannel
A class representing a Pseudo Counter in the Sardana Device Pool
- ValueAttributeClass
alias of
Value
- ValueBufferClass
alias of
ValueBuffer
- AcquisitionClass = None
- property siblings
the siblings for this pseudo counter
- get_physical_value_buffer_iterator()[source]
Returns an iterator over the value buffer of each user element.
- Return type:
Iterator
[SardanaBuffer
]- Returns:
an iterator over the value buffer of each user element.
- get_physical_values(cache=True, propagate=1)[source]
Get value for underlying elements.
- Parameters:
- Return type:
- Returns:
the physical value
- get_siblings_values(use=None)[source]
Get the last values for all siblings.
- Parameters:
use (
Optional
[Dict
[PoolElement
,SardanaValue
]]) – the already calculated values. If a sibling is in this dictionary, the value stored here is used instead- Return type:
- Returns:
a dictionary with siblings values
- get_value(cache=True, propagate=1)[source]
Returns the pseudo counter value.
- Parameters:
- Return type:
- Returns:
the pseudo counter value
- set_value(value, propagate=1)[source]
Starts an acquisition on this channel
- Parameters:
value – the value to count
- property value: SardanaAttribute
pseudo counter value
- calculate_state_info(status_info=None)[source]
Transforms the given state information. This specific base implementation transforms the given state,status tuple into a state, new_status tuple where new_status is “self.name is state plus the given status. It is assumed that the given status comes directly from the controller status information.
- Parameters:
status_info – given status information [default: None, meaning use current state status.
- Returns:
a transformed state information