Taurus Extensions¶
Classes
BaseElement¶

-
class
BaseElement[source]¶ Bases:
objectThe base class for elements in the Pool (Pool itself, Motor, ControllerClass, ExpChannel all should inherit from this class directly or indirectly)
Controller¶

-
class
Controller(name, **kw)[source]¶ Bases:
sardana.taurus.core.tango.sardana.pool.PoolElementClass encapsulating Controller functionality.
ControllerClass¶

CTExpChannel¶

-
class
CTExpChannel(name, **kw)[source]¶ Bases:
sardana.taurus.core.tango.sardana.pool.ExpChannelClass encapsulating CTExpChannel functionality.
ExpChannel¶

-
class
ExpChannel(name, **kw)[source]¶ Bases:
sardana.taurus.core.tango.sardana.pool.PoolElementClass encapsulating ExpChannel functionality.
Instrument¶

IORegister¶

-
class
IORegister(name, **kw)[source]¶ Bases:
sardana.taurus.core.tango.sardana.pool.PoolElementClass encapsulating IORegister functionality.
-
getValueObj()[source]¶ - Deprecated by TEP14.
- ..warning::
- this bck-compat implementation is not perfect because the rvalue of the returned TangoAttributeValue is now a member of TaurusDevState instead of TaurusSWDevState
Deprecated since version 4.0: Use state [agnostic] or stateObj.read [Tango] instead
-
writeIORegister(new_value, timeout=None)¶
-
writeIOR(new_value, timeout=None)¶
-
readIORegister(force=False)¶
-
readIOR(force=False)¶
-
getValue(force=False)¶
-
MeasurementGroup¶

-
class
MeasurementGroup(name, **kw)[source]¶ Bases:
sardana.taurus.core.tango.sardana.pool.PoolElementClass encapsulating MeasurementGroup functionality.
-
getChannelsEnabledInfo()[source]¶ Returns information about only enabled channels present in the measurement group in a form of ordered, based on the channel index, list.
Returns: list with channels info Return type: list<TangoChannelInfo>
-
valueBufferChanged(channel, value_buffer)[source]¶ Receive value buffer updates, pre-process them, and call the subscribed callback.
Parameters: - channel (ExpChannel) – channel that reports value buffer update
- value_buffer (
str) – json encoded value buffer update, it contains at least values and indexes
-
subscribeValueBuffer(cb=None)[source]¶ Subscribe to channels’ value buffer update events. If no callback is passed, the default channel’s callback is subscribed which will store the data in the channel’s value_buffer attribute.
Parameters: cb (callable) – callback to be subscribed, None means subscribe the default channel’s callback
-
unsubscribeValueBuffer(cb=None)[source]¶ Unsubscribe from channels’ value buffer events. If no callback is passed, unsubscribe the channel’s default callback.
Parameters: cb (callable) – callback to be unsubscribed, None means unsubscribe the default channel’s callback
-
enableChannels(channels)[source]¶ Enable acquisition of the indicated channels.
Parameters: channels – (seq<str>) a sequence of strings indicating channel names
-
disableChannels(channels)[source]¶ Disable acquisition of the indicated channels.
Parameters: channels – (seq<str>) a sequence of strings indicating channel names
-
count_continuous(synchronization, value_buffer_cb=None)[source]¶ Execute measurement process according to the given synchronization description.
Parameters: - synchronization (list of groups with equidistant synchronizations) – synchronization description
- value_buffer_cb (callable) – callback on value buffer updates
Returns: state and eventually value buffers if no callback was passed
Return type: tuple<list<DevState>,<list>>
Todo
Think of unifying measure with count.
Note
The measure method has been included in MeasurementGroup class on a provisional basis. Backwards incompatible changes (up to and including removal of the method) may occur if deemed necessary by the core developers.
-
startCount(**kwargs)¶
-
waitCount(timeout=None, id=None)¶ Wait for the operation to finish
Parameters: - timeout (float) – optional timeout (seconds)
- id (tuple(float)) – id of the opertation returned by start
-
count(*args, **kwargs)¶
-
stopCount(wait_ready=True, timeout=None)¶
-
stop(wait_ready=True, timeout=None)¶
-
Motor¶

-
class
Motor(name, **kw)[source]¶ Bases:
sardana.taurus.core.tango.sardana.pool.PoolElement,sardana.taurus.core.tango.sardana.motion.MoveableClass encapsulating Motor functionality.
-
startMove(**kwargs)¶
-
waitMove(timeout=None, id=None)¶ Wait for the operation to finish
Parameters: - timeout (float) – optional timeout (seconds)
- id (tuple(float)) – id of the opertation returned by start
-
move(*args, **kwargs)¶
-
getLastMotionTime()¶ Returns the time it took for last go operation
-
getTotalLastMotionTime()¶ Returns the time it took for last go operation, including dead time to prepare, wait for events, etc
-
MotorGroup¶

-
class
MotorGroup(name, **kw)[source]¶ Bases:
sardana.taurus.core.tango.sardana.pool.PoolElement,sardana.taurus.core.tango.sardana.motion.MoveableClass encapsulating MotorGroup functionality.
-
startMove(**kwargs)¶
-
waitMove(timeout=None, id=None)¶ Wait for the operation to finish
Parameters: - timeout (float) – optional timeout (seconds)
- id (tuple(float)) – id of the opertation returned by start
-
move(*args, **kwargs)¶
-
getLastMotionTime()¶ Returns the time it took for last go operation
-
getTotalLastMotionTime()¶ Returns the time it took for last go operation, including dead time to prepare, wait for events, etc
-
OneDExpChannel¶

-
class
OneDExpChannel(name, **kw)[source]¶ Bases:
sardana.taurus.core.tango.sardana.pool.ExpChannelClass encapsulating OneDExpChannel functionality.
Pool¶

-
class
Pool(name, **kw)[source]¶ Bases:
taurus.core.tango.tangodevice.TangoDevice,sardana.taurus.core.tango.sardana.motion.MoveableSourceClass encapsulating device Pool functionality.
PoolElement¶

-
class
PoolElement(name, **kwargs)[source]¶ Bases:
sardana.taurus.core.tango.sardana.pool.BaseElement,taurus.core.tango.tangodevice.TangoDeviceBase class for a Pool element device.
-
waitFinish(timeout=None, id=None)[source]¶ Wait for the operation to finish
Parameters: - timeout (float) – optional timeout (seconds)
- id (tuple(float)) – id of the opertation returned by start
-
PseudoCounter¶

-
class
PseudoCounter(name, **kw)[source]¶ Bases:
sardana.taurus.core.tango.sardana.pool.ExpChannelClass encapsulating PseudoCounter functionality.
PseudoMotor¶

-
class
PseudoMotor(name, **kw)[source]¶ Bases:
sardana.taurus.core.tango.sardana.pool.PoolElement,sardana.taurus.core.tango.sardana.motion.MoveableClass encapsulating PseudoMotor functionality.
-
startMove(**kwargs)¶
-
waitMove(timeout=None, id=None)¶ Wait for the operation to finish
Parameters: - timeout (float) – optional timeout (seconds)
- id (tuple(float)) – id of the opertation returned by start
-
move(*args, **kwargs)¶
-
getLastMotionTime()¶ Returns the time it took for last go operation
-
getTotalLastMotionTime()¶ Returns the time it took for last go operation, including dead time to prepare, wait for events, etc
-
TriggerGate¶

-
class
TriggerGate(name, **kwargs)[source]¶ Bases:
sardana.taurus.core.tango.sardana.pool.PoolElementClass encapsulating TriggerGate functionality.
TwoDExpChannel¶

-
class
TwoDExpChannel(name, **kw)[source]¶ Bases:
sardana.taurus.core.tango.sardana.pool.ExpChannelClass encapsulating TwoDExpChannel functionality.
ZeroDExpChannel¶

-
class
ZeroDExpChannel(name, **kw)[source]¶ Bases:
sardana.taurus.core.tango.sardana.pool.ExpChannelClass encapsulating ZeroDExpChannel functionality.