TangoAttribute

Inheritance diagram of TangoAttribute
class TangoAttribute(name, parent, **kwargs)[source]

Bases: taurus.core.taurusattribute.TaurusAttribute

addListener(listener)[source]

Add a TaurusListener object in the listeners list. If it is the first element and Polling is enabled starts the polling mechanism. If the listener is already registered nothing happens.

alarms
calarms

Deprecated since version 4.0: Use getAlarms instead

cleanUp()[source]
climits

Deprecated since version 4.0: Use getRange instead

cranges

Deprecated since version 4.0: Use getRange + getAlarms + getWarnings instead

cwarnings

Deprecated since version 4.0: Use getAlarms instead

decode(attr_value)[source]

Decodes a value that was received from PyTango into the expected representation

description
dev_alias
displayValue(*args, **kwargs)

Deprecated since version 4.0.

encode(value)[source]

Translates the given value into a tango compatible value according to the attribute data type.

Raises pint.DimensionalityError if value is a Quantity and it cannot be expressed in the units of the attribute set in the DB

format

Deprecated since version 4.0.4: Use format_spec or precision instead

getAlarms(cache=True)[source]
getAttributeInfoEx(cache=True)[source]
getAttributeProxy()[source]

Convenience method that creates and returns a PyTango.AttributeProxy object

getCAlarms(*args, **kwargs)

Deprecated since version 4.0: Use getAlarms instead

getCLimits(*args, **kwargs)

Deprecated since version 4.0: Use getRange instead

getCRanges(*args, **kwargs)

Deprecated since version 4.0: Use getRange + getAlarms + getWarnings instead

getCWarnings(*args, **kwargs)

Deprecated since version 4.0: Use getWarnings instead

getConfig(*args, **kwargs)

Returns the current configuration of the attribute.

Deprecated since version 4.0: Use self instead

getDescription(*args, **kwargs)

Deprecated since version 4.0: Use .description instead

getDisplayUnit(*args, **kwargs)

Deprecated since version 4.0: Use .rvalue.units instead

getDisplayValue(*args, **kwargs)

Deprecated since version 4.0: Use getLabel instead

getDisplayWriteValue(*args, **kwargs)

Deprecated since version 4.0.

getFormat(cache=True)[source]
getLabel(cache=True)[source]
getLimits(cache=True)[source]
getMaxAlarm(*args, **kwargs)

Deprecated since version 4.0: Use .alarms[1] instead

getMaxDim(cache=True)[source]
getMaxDimX(*args, **kwargs)

Deprecated since version 4.0: Use getMaxDim instead

getMaxDimY(*args, **kwargs)

Deprecated since version 4.0: Use getMaxDim instead

getMaxValue(*args, **kwargs)

Deprecated since version 4.0: Use getMaxRange instead

getMaxWarning(*args, **kwargs)

Deprecated since version 4.0: Use .warnings[1] instead

getMinAlarm(*args, **kwargs)

Deprecated since version 4.0: Use .alarms[0] instead

getMinValue(*args, **kwargs)

Deprecated since version 4.0: Use getMinRange instead

getMinWarning(*args, **kwargs)

Deprecated since version 4.0: Use .warnings[0] instead

getNewOperation(value)[source]
getParam(*args, **kwargs)

Get attributes of AttributeInfoEx (PyTango)

Deprecated since version 4.0: Use getAttributeInfoEx instead

getRange(cache=True)[source]
getRanges(cache=True)[source]
getShape(*args, **kwargs)

Deprecated since version 4.0.

getStandardUnit(*args, **kwargs)

Deprecated since version 4.0: Use .rvalue.units instead

getSubscriptionState()[source]
getTangoWritable(cache=True)[source]

like TaurusAttribute.isWritable(), but it returns a PyTango.AttrWriteType instead of a bool

getUnit(*args, **kwargs)

Deprecated since version 4.0: Use .rvalue.units instead

getWarnings(cache=True)[source]
getWritable(*args, **kwargs)

Deprecated since version 4.0: Use isWritable instead

isBoolean(inc_array=False)[source]
isFloat(inc_array=False)[source]
isImage(*args, **kwargs)

Deprecated since version 4.0: Use self.data_format instead

isInformDeviceOfErrors(*args, **kwargs)

Deprecated since version 4.0.

isInteger(inc_array=False)[source]
isReadOnly(cache=True)[source]
isReadWrite(cache=True)[source]
isScalar(*args, **kwargs)

Deprecated since version 4.0: Use self.data_format instead

isSpectrum(*args, **kwargs)

Deprecated since version 4.0: Use self.data_format instead

isState()[source]
isUsingEvents()[source]
isWrite(cache=True)[source]
label
max_alarm

Deprecated since version 4.0: Use .alarms[1] instead

max_warning

Deprecated since version 4.0: Use .warnings[1] instead

min_alarm

Deprecated since version 4.0: Use .alarms[0] instead

min_warning

Deprecated since version 4.0: Use .warnings[0] instead

no_abs_change = 'Not specified'
no_archive_abs_change = 'Not specified'
no_archive_period = 'Not specified'
no_archive_rel_change = 'Not specified'
no_cfg_value = '-----'
no_delta_t = 'Not specified'
no_delta_val = 'Not specified'
no_description = 'No description'
no_display_unit = 'No display unit'
no_max_alarm = 'Not specified'
no_max_value = 'Not specified'
no_max_warning = 'Not specified'
no_min_alarm = 'Not specified'
no_min_value = 'Not specified'
no_min_warning = 'Not specified'
no_rel_change = 'Not specified'
no_standard_unit = 'No standard unit'
no_unit = 'No unit'
not_specified = 'Not specified'
poll(single=True, value=None, time=None, error=None)[source]

Notify listeners when the attribute has been polled

push_event(event)[source]

Method invoked by the PyTango layer when an event occurs. It propagates the event to listeners and delegates other tasks to specific handlers for different event types.

range
read(cache=True)[source]

Returns the current value of the attribute. if cache is set to True (default) or the attribute has events active then it will return the local cached value. Otherwise it will read the attribute value from the tango device.

removeListener(listener)[source]

Remove a TaurusListener from the listeners list. If polling enabled and it is the last element the stop the polling timer. If the listener is not registered nothing happens.

setAlarms(*limits)[source]
setConfigEx(config)[source]
setDescription(*args, **kwargs)

Deprecated since version 4.0: Use .description instead

setLabel(lbl)[source]
setLimits(low, high)[source]
setMaxAlarm(*args, **kwargs)

Deprecated since version 4.0: Use .alarms instead

setMaxWarning(*args, **kwargs)

Deprecated since version 4.0: Use .warnings instead

setMinAlarm(*args, **kwargs)

Deprecated since version 4.0: Use .alarms instead

setMinWarning(*args, **kwargs)

Deprecated since version 4.0: Use .warnings instead

setParam(*args, **kwargs)

Set attributes of AttributeInfoEx (PyTango)

Deprecated since version 4.0: Use PyTango instead

setRange(*limits)[source]
setWarnings(*limits)[source]
subscribePendingEvents()[source]

Execute delayed event subscription

unit

Deprecated since version 4.0: Use .rvalue.units instead

warnings
write(value, with_read=True)[source]

Write the value in the Tango Device Attribute