TangoDevice

Inheritance diagram of TangoDevice
class TangoDevice(name='', **kw)[source]

A Device object representing an abstraction of the PyTango.DeviceProxy object in the taurus.core.tango scheme

Import from taurus.core.tango as:

from taurus.core.tango import TangoDevice
addListener(listener)[source]
cleanUp()[source]

The cleanUp. Default implementation does nothing Overwrite when necessary

property description
eventReceived(event_src, event_type, event_value)[source]
getAttribute(attrname)[source]

Returns the attribute object given its name

getDescription(**kwargs)

Deprecated since version 4.0: Use .description instead

getDeviceProxy()[source]
getDisplayDescrObj(cache=True)[source]

A brief description of the model. Can be used as tooltip, for example.

getDisplayValue(**kwargs)

Deprecated since version 4.0: Use .state.name instead

getHWObj(**kwargs)

Deprecated since version 4.0: Use getDeviceProxy() instead

getLockInfo(cache=False)[source]
getSWState(**kwargs)

Deprecated since version 4.0: Use state instead

getState(**kwargs)

Deprecated since version 4.0: Use .stateObj.read().rvalue [Tango] or .state [agnostic] instead

getStateObj(**kwargs)

Deprecated since version 4.0: Use .stateObj [Tango] or .factory.getAttribute(state_full_name) [agnostic] instead

getValueObj(**kwargs)
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

isValidDev(**kwargs)

see: TaurusDevice.isValid()

Deprecated since version 4.0: Use getDeviceProxy() is not None instead

lock(force=False)[source]
poll(attrs, asynch=False, req_id=None)[source]

optimized by reading of multiple attributes in one go

removeListener(listener)[source]
property state

Reimplemented from TaurusDevice to use Tango’s state attribute for diagnosis of the current state. It supports a “cache” kwarg

Parameters:

cache (bool) – If True (default), cache will be used when reading the state attribute of this device

Returns:

Return type:

TaurusDevState

property stateObj
unlock(force=False)[source]