Commit 0278018f authored by Wout De Nolf's avatar Wout De Nolf
Browse files

doc

parent 1cbc23ef
......@@ -2,18 +2,39 @@
Demo of job triggering with [Dahu](https://github.com/kif/dahu)
Installation
## Installation
```bash
conda install -c tango-controls pytango
python -m pip install . # dahu
```
Start tango server without database
## With database
Register tango device with database
```bash
TANGO_HOST=localhost:10000 dahu-register
```
Start tango server which has the device
```bash
DAHU_PLUGINS=./dahu_demo/plugins TANGO_HOST=localhost:10000 dahu-server dahu
```
Use the tango device
```python
from PyTango import DeviceProxy
p = DeviceProxy("tango://localhost:10000/id00/dahu/1")
```
## Without database
Start tango device without database
```bash
DAHU_PLUGIN=./dahu_demo/plugin python ../dahu/scripts/dahu_server dahu -ORBendPoint giop:tcp::10000 -nodb -dlist id00/dahu/1 -v4
DAHU_PLUGINS=./dahu_demo/plugins dahu-server dahu -ORBendPoint giop:tcp::10000 -nodb -dlist id00/dahu/1 -v4
```
Use the tango device
```python
from tango import DeviceProxy
from PyTango import DeviceProxy
p = DeviceProxy("tango://localhost:10000/id00/dahu/1#dbase=no")
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment