EpicsAttribute

Inheritance diagram of EpicsAttribute
class EpicsAttribute(name='', parent=None, storeCallback=None)[source]

A TaurusAttribute that gives access to an Epics Process Variable.

Warning

In most cases this class should not be instantiated directly. Instead it should be done via the EpicsFactory.getAttribute()

Import from taurus.core.epics as:

from taurus.core.epics import EpicsAttribute
decode(pv)[source]

Decodes an epics PV object into a TaurusValue, and also updates other properties of the Attribute object

encode(value)[source]

encodes the value passed to the write method into a representation that can be written with epics.PV.put()

factory()[source]
classmethod getNameValidator()[source]
getPV()[source]

Returns the underlying epics.PV object

isUsingEvents()[source]
onEpicsConnectionEvent(**kwargs)[source]

callback for PV connection changes

onEpicsEvent(**kwargs)[source]

callback for PV changes

poll()[source]
read(cache=True)[source]

returns the value of the attribute.

Parameters:

cache (bool) – If True (default), the last calculated value will be returned. If False, the referenced values will be re- read and the transformation string will be re-evaluated

Returns:

attribute value

write(value, with_read=True)[source]