summaryrefslogtreecommitdiffstats
path: root/tango/README.md
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-03-17 09:00:11 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-03-17 09:03:30 +0100
commit76479e9860ee7875b46de1ab47c5062179cffdc4 (patch)
tree7d61cb0e679857ae727a2769cc42a1816288cb8e /tango/README.md
parent36cf88b4b8a0cb149922c8276adc6010acb76dac (diff)
downloadlibuca-76479e9860ee7875b46de1ab47c5062179cffdc4.tar.gz
libuca-76479e9860ee7875b46de1ab47c5062179cffdc4.tar.bz2
libuca-76479e9860ee7875b46de1ab47c5062179cffdc4.tar.xz
libuca-76479e9860ee7875b46de1ab47c5062179cffdc4.zip
Add TANGO server
Diffstat (limited to 'tango/README.md')
-rw-r--r--tango/README.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/tango/README.md b/tango/README.md
new file mode 100644
index 0000000..21107b9
--- /dev/null
+++ b/tango/README.md
@@ -0,0 +1,31 @@
+## Installation
+
+Install the server script with
+
+ $ 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 foo
+
+You should be able to manipulate camera attributes like `exposure_time` and the
+like and store frames using a `Start`, `Store`, `Stop` cycle.
+
+```python
+import PyTango
+
+camera = PyTango.DeviceProxy("foo/Camera/mock")
+camera.exposure_time = 0.1
+camera.Start()
+camera.Store('foo.tif')
+camera.Stop()
+```