Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Wout De Nolf
dahu-demo
Commits
0278018f
Commit
0278018f
authored
Jan 13, 2022
by
Wout De Nolf
Browse files
doc
parent
1cbc23ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
0278018f
...
...
@@ -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_PLUGIN
S
=
./dahu_demo/plugin
s dahu-
server dahu
-ORBendPoint
giop:tcp::10000
-nodb
-dlist
id00/dahu/1
-v4
```
Use the tango device
```
python
from
t
ango
import
DeviceProxy
from
PyT
ango
import
DeviceProxy
p
=
DeviceProxy
(
"tango://localhost:10000/id00/dahu/1#dbase=no"
)
```
dahu_demo/plugin/__init__.py
→
dahu_demo/plugin
s
/__init__.py
View file @
0278018f
File moved
dahu_demo/plugin/ewoks.py
→
dahu_demo/plugin
s
/ewoks.py
View file @
0278018f
File moved
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment