taurus taurus

Previous topic

taurus.core.epics

Next topic

EpicsAttributeNameValidator

This Page

EpicsAttribute

Inheritance diagram of EpicsAttribute

class EpicsAttribute(name, parent, storeCallback=None)

Bases: taurus.core.taurusattribute.TaurusAttribute

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()

decode(obj)
decode_epics_evt(evt)

Decodes an epics event (a callback keywords dict) into the expected taurus representation

decode_pv(pv)

Decodes an epics pv into the expected taurus representation

encode(value)

encodes the value passed to the write method into a representation that can be written in epics

factory()
getDisplayValue(cache=True)
classmethod getNameValidator()
getWritable(cache=True)
isBoolean()
isNumeric()
isReadOnly(cache=True)
isReadWrite(cache=True)
isState()
isUsingEvents()
isWritable(cache=True)
isWrite(cache=True)
onEpicsEvent(**kw)

callback for PV changes

poll()
read(cache=True)

returns the value of the attribute.

Parameters:cache (:class:~`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)