tau tau

Previous topic

WarnIt

Next topic

tau.core.tango.img

This Page

tau.core.tangoΒΆ

Tango extension for tau core mode. The Tango extension implements tau.core objects that connect to Tango objects. The official scheme name is, obviously, ‘tango’. As Tango is the default tau scheme, when specifing a tango model name, the scheme prefix (‘tango://’) can be omited.

You should never create objects of tango classes directly. Instead you should use the tau.core.TauManager and tau.core.TauFactory APIs to access all elements.

For example, to get a reference to the Tango attribute my/tango/device/state you should do something like:

>>> import tau
>>> my_state = tau.Attribute('tango://my/tango/device/state')

In fact, because the tau default extension is Tango, you could omit the ‘tango://’ prefix from the previous code:

>>> import tau
>>> my_state = tau.Attribute('my/tango/device/state')

The same is applied to a device:

>>> import tau
>>> my_device = tau.Device('my/tango/device')

...to a database:

>>> import tau
>>> db = tau.Database('homer:10000')

...and an attribute configuration:

>>> import tau
>>> me_state_config = tau.Attribute('my/tango/device/state?configuration')

The way to get access to the Tango factory is:

>>> import tau
>>> factory = tau.Factory()

Modules

Enumerations

Classes

Functions