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
()¶ Returns the value attribute object for this experiment channel
Returns: the value attribute Return type: SardanaAttribute
-
on_change
(evt_src, evt_type, evt_value)¶
-
get_default_attribute
()¶
-
get_acquisition
()¶
-
acquisition
¶ acquisition object
-
read_value
()¶ Reads the channel value from hardware.
Returns: a SardanaValue
containing the channel valueReturn type: SardanaValue
-
put_value
(value, propagate=1)¶ 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)¶ 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)¶ Starts an acquisition on this channel
Parameters: value ( Number
) – the value to count
-
value
¶ channel value
-
start_acquisition
(value=None)¶
-