Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
ADC Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
ADC Testing
Commits
94e2f2b2
Commit
94e2f2b2
authored
Sep 01, 2011
by
Federico Asara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Script that exports via Pyro4 three objects: Agilent33250A, Sis33 and SineWaveform.
parent
51566399
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
server.py
server.py
+33
-0
No files found.
server.py
0 → 100644
View file @
94e2f2b2
import
sys
import
commands
import
PAGE
import
PAGE.Agilent33250A
,
PAGE
.
Sis33
,
PAGE
.
SineWaveform
import
Pyro4
print
'Agilent'
agilent
=
PAGE
.
Agilent33250A
.
target
()
agilent
.
device
=
sys
.
argv
[
1
]
agilent
.
connect
()
print
'Sis33'
sis33
=
PAGE
.
Sis33
.
target
(
sys
.
argv
[
2
])
print
'Sine'
sine
=
PAGE
.
SineWaveform
.
target
()
print
'Daemon'
hn
=
commands
.
getoutput
(
'hostname'
)
daemon
=
Pyro4
.
Daemon
(
host
=
hn
)
print
'Registering'
uris
=
map
(
daemon
.
register
,
(
agilent
,
sis33
,
sine
))
print
'Nameserver'
ns
=
Pyro4
.
locateNS
()
map
(
ns
.
register
,
(
'agilent'
,
'sis33'
,
'sine'
),
uris
)
print
'Run'
daemon
.
requestLoop
()
print
'Done'
Write
Preview
Markdown
is supported
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