summaryrefslogtreecommitdiffstats
path: root/docs/python-tango.rst
diff options
context:
space:
mode:
authorMariaMatveeva <matveeva.maria@gmail.com>2016-08-26 14:29:03 +0200
committerMariaMatveeva <matveeva.maria@gmail.com>2016-08-26 14:29:03 +0200
commit48b868c5208816b007ec1d9c7940e75b4c64e5ce (patch)
treeca1f4a3bc0838b94b9fe9774d23ca1848948c303 /docs/python-tango.rst
parentd0aabc426cb01d488e9d41a66623773da73ff5e3 (diff)
downloaduca-48b868c5208816b007ec1d9c7940e75b4c64e5ce.tar.gz
uca-48b868c5208816b007ec1d9c7940e75b4c64e5ce.tar.bz2
uca-48b868c5208816b007ec1d9c7940e75b4c64e5ce.tar.xz
uca-48b868c5208816b007ec1d9c7940e75b4c64e5ce.zip
Update documentation
Diffstat (limited to 'docs/python-tango.rst')
-rw-r--r--docs/python-tango.rst44
1 files changed, 44 insertions, 0 deletions
diff --git a/docs/python-tango.rst b/docs/python-tango.rst
new file mode 100644
index 0000000..c530e42
--- /dev/null
+++ b/docs/python-tango.rst
@@ -0,0 +1,44 @@
+Python Tango server
+===================
+
+``libuca/tango`` is a Python-based Tango server.
+
+Installation
+------------
+
+In order to install ``libuca/tango`` you need
+
+- `PyTango`_ and
+- `tifffile`_
+
+.. _PyTango: http://www.esrf.eu/computing/cs/tango/tango_doc/kernel_doc/pytango/latest/index.html
+.. _tifffile: https://pypi.python.org/pypi/tifffile
+
+Go to the ``libuca`` directory and install the server script with::
+
+ $ cd tango
+ $ sudo python setup.py install
+
+and create a new TANGO server ``Uca/xyz`` with a class named ``Camera``.
+
+
+Usage
+-----
+
+Before starting the server, you have to create a new device property ``camera``
+which specifies which camera to use. If not set, the ``mock`` camera will be used
+by default.
+
+Start the device server with::
+
+ $ Uca device-property
+
+You should be able to manipulate camera attributes like ``exposure_time`` and to store frames using a ``Start``, ``Store``, ``Stop`` cycle::
+
+ import PyTango
+
+ camera = PyTango.DeviceProxy("foo/Camera/mock")
+ camera.exposure_time = 0.1
+ camera.Start()
+ camera.Store('foo.tif')
+ camera.Stop()