The devices receive their configuration from two sources:
The devices receive their configuration from two sources:
- The TangoDB database, for static *properties*,
- The TangoDB database, for static *properties*,
- Externally, from the user, or a control system, that set *control attributes*.
- Externally, from the user, or a control system, that set *control attributes* (see :doc:`devices` for what to set, and :ref:`attributes` for how to set them).
@@ -14,7 +14,7 @@ To access a device, one creates a ``Device`` object. For example::
...
@@ -14,7 +14,7 @@ To access a device, one creates a ``Device`` object. For example::
recv = Device("LTS/RECV/1")
recv = Device("LTS/RECV/1")
See :doc:`../control` on how and where to execute this code.
See :doc:`../interfaces/control` on how and where to execute this code.
States
States
------------
------------
...
@@ -55,7 +55,9 @@ typically involves the following sequence of commands::
...
@@ -55,7 +55,9 @@ typically involves the following sequence of commands::
# turn on the device
# turn on the device
device.on()
device.on()
Of course, the device could go into ``FAULT`` again, even during the ``initialise()`` command, for example because the hardware it manages is unreachable. To debug the fault condition, check the :doc:`../logs` of the device in question.
Of course, the device could go into ``FAULT`` again, even during the ``initialise()`` command, for example because the hardware it manages is unreachable. To debug the fault condition, check the :doc:`../interfaces/logs` of the device in question.