poolbasechannel

This module is part of the Python Pool library. It defines the base classes for experiment channels

Classes

PoolBaseChannel

Inheritance diagram of PoolBaseChannel

class PoolBaseChannel(**kwargs)[source]

Bases: sardana.pool.poolelement.PoolElement

ValueAttributeClass

alias of Value

AcquisitionClass
get_value_attribute()[source]

Returns the value attribute object for this experiment channel

Returns:the value attribute
Return type:SardanaAttribute
on_change(evt_src, evt_type, evt_value)[source]
get_default_attribute()[source]
get_acquisition()[source]
acquisition

acquisition object

read_value()[source]

Reads the channel value from hardware.

Returns:a SardanaValue containing the channel value
Return 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
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:

SardanaAttribute

set_value(value)[source]

Starts an acquisition on this channel

Parameters:value (Number) – the value to count
value

channel value

start_acquisition(value=None)[source]