TangoAttribute
¶
digraph inheritanceba9bdeed13 {
bgcolor=transparent;
rankdir=UD;
ratio=compress;
size="8.0, 12.0";
"Logger" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="The taurus logger class. All taurus pertinent classes should inherit"];
"Object" -> "Logger" [arrowsize=0.5,style="setlinewidth(0.5)"];
"Object" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"TangoAttribute" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"TaurusAttribute" -> "TangoAttribute" [arrowsize=0.5,style="setlinewidth(0.5)"];
"TaurusAttribute" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"TaurusModel" -> "TaurusAttribute" [arrowsize=0.5,style="setlinewidth(0.5)"];
"TaurusModel" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"Logger" -> "TaurusModel" [arrowsize=0.5,style="setlinewidth(0.5)"];
}
-
class
TangoAttribute
(name='', parent=None, **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.
-
property
alarms
¶
-
property
calarms
¶ Deprecated since version 4.0: Use getAlarms instead
-
property
climits
¶ Deprecated since version 4.0: Use getRange instead
-
property
cranges
¶ Deprecated since version 4.0: Use getRange + getAlarms + getWarnings instead
-
property
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
-
property
description
¶
-
property
dev_alias
¶
-
displayValue
(**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
-
property
format
¶ Deprecated since version 4.0.4: Use format_spec or precision instead
-
getAttributeProxy
()[source]¶ Convenience method that creates and returns a PyTango.AttributeProxy object
-
getCAlarms
(**kwargs)¶ Deprecated since version 4.0: Use getAlarms instead
-
getCLimits
(**kwargs)¶ Deprecated since version 4.0: Use getRange instead
-
getCRanges
(**kwargs)¶ Deprecated since version 4.0: Use getRange + getAlarms + getWarnings instead
-
getCWarnings
(**kwargs)¶ Deprecated since version 4.0: Use getWarnings instead
-
getConfig
(**kwargs)¶ Returns the current configuration of the attribute.
Deprecated since version 4.0: Use self instead
-
getDescription
(**kwargs)¶ Deprecated since version 4.0: Use .description instead
-
getDisplayUnit
(**kwargs)¶ Deprecated since version 4.0: Use .rvalue.units instead
-
getDisplayValue
(**kwargs)¶ Deprecated since version 4.0: Use getLabel instead
-
getDisplayWriteValue
(**kwargs)¶ Deprecated since version 4.0.
-
getMaxAlarm
(**kwargs)¶ Deprecated since version 4.0: Use .alarms[1] instead
-
getMaxDimX
(**kwargs)¶ Deprecated since version 4.0: Use getMaxDim instead
-
getMaxDimY
(**kwargs)¶ Deprecated since version 4.0: Use getMaxDim instead
-
getMaxValue
(**kwargs)¶ Deprecated since version 4.0: Use getMaxRange instead
-
getMaxWarning
(**kwargs)¶ Deprecated since version 4.0: Use .warnings[1] instead
-
getMinAlarm
(**kwargs)¶ Deprecated since version 4.0: Use .alarms[0] instead
-
getMinValue
(**kwargs)¶ Deprecated since version 4.0: Use getMinRange instead
-
getMinWarning
(**kwargs)¶ Deprecated since version 4.0: Use .warnings[0] instead
-
getParam
(**kwargs)¶ Get attributes of AttributeInfoEx (PyTango)
Deprecated since version 4.0: Use getAttributeInfoEx instead
-
getShape
(**kwargs)¶ Deprecated since version 4.0.
-
getStandardUnit
(**kwargs)¶ Deprecated since version 4.0: Use .rvalue.units instead
-
getTangoWritable
(cache=True)[source]¶ like TaurusAttribute.isWritable(), but it returns a PyTango.AttrWriteType instead of a bool
-
getUnit
(**kwargs)¶ Deprecated since version 4.0: Use .rvalue.units instead
-
getWritable
(**kwargs)¶ Deprecated since version 4.0: Use isWritable instead
-
isImage
(**kwargs)¶ Deprecated since version 4.0: Use self.data_format instead
-
isInformDeviceOfErrors
(**kwargs)¶ Deprecated since version 4.0.
-
isScalar
(**kwargs)¶ Deprecated since version 4.0: Use self.data_format instead
-
isSpectrum
(**kwargs)¶ Deprecated since version 4.0: Use self.data_format instead
-
property
label
¶
-
property
max_alarm
¶ Deprecated since version 4.0: Use .alarms[1] instead
-
property
max_warning
¶ Deprecated since version 4.0: Use .warnings[1] instead
-
property
min_alarm
¶ Deprecated since version 4.0: Use .alarms[0] instead
-
property
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.
-
property
range
¶
-
read
(cache=True)[source]¶ Returns the current value of the attribute.
If cache is not False, or expired, 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.
The cached value expires if it is older than the value (im ms) passed as the cache argument or the polling period if cache==True (default). If the cache is expired a reading will be done just as if cache was False.
- Parameters
cache (
bool
orfloat
) – use cache value or make readout, eventually pass a cache’s expiration period in milliseconds- Returns
attribute value
- Return type
TangoAttributeValue
-
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.
-
setDescription
(**kwargs)¶ Deprecated since version 4.0: Use .description instead
-
setMaxAlarm
(**kwargs)¶ Deprecated since version 4.0: Use .alarms instead
-
setMaxWarning
(**kwargs)¶ Deprecated since version 4.0: Use .warnings instead
-
setMinAlarm
(**kwargs)¶ Deprecated since version 4.0: Use .alarms instead
-
setMinWarning
(**kwargs)¶ Deprecated since version 4.0: Use .warnings instead
-
setParam
(**kwargs)¶ Set attributes of AttributeInfoEx (PyTango)
Deprecated since version 4.0: Use PyTango instead
-
property
unit
¶ Deprecated since version 4.0: Use .rvalue.units instead
-
property
warnings
¶
-