poolbasechannel¶
This module is part of the Python Pool library. It defines the base classes for experiment channels
Classes
PoolBaseChannel¶
-
class
PoolBaseChannel(**kwargs)[source]¶ Bases:
sardana.pool.poolelement.PoolElement-
ValueAttributeClass¶ alias of
Value
-
AcquisitionClass¶ alias of
PoolCTAcquisition
-
get_value_attribute()[source]¶ Returns the value attribute object for this experiment channel
Returns: the value attribute Return type: SardanaAttribute
-
acquisition¶ acquisition object
-
read_value()[source]¶ Reads the channel value from hardware.
Returns: a SardanaValuecontaining the channel valueReturn type: SardanaValue
-
put_value(value, propagate=1)[source]¶ Sets a value.
Parameters: - value (
SardanaValue) – the new value - propagate (int) – 0 for not propagating, 1 to propagate, 2 propagate with priority
- value (
-
get_value(cache=True, propagate=1)[source]¶ Returns the channel 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 channel value
Return type: - cache (bool) – if
-
set_value(value)[source]¶ Starts an acquisition on this channel
Parameters: value ( Number) – the value to count
-
value¶ channel value
-