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
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
misc
adc-testing
Commits
29e32976
Commit
29e32976
authored
Sep 01, 2011
by
Federico Asara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Module initializer loads all the components of the API, if they can be loaded.
Added support for Pyro4 RemoteObject
parent
c87b79c5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
__init__.py
PAGE/__init__.py
+19
-6
No files found.
PAGE/__init__.py
View file @
29e32976
__author__
=
"Federico"
__author__
=
"Federico"
__date__
=
"$Aug 17, 2011 4:43:08 PM$"
__date__
=
"$Aug 17, 2011 4:43:08 PM$"
# PA
In: Python ADC Interface
# PA
GE: Python ADC and GEnerators API
import
SineWaveform
hasSis33
=
False
import
SineWaveform
,
TTWaveform
import
Agilent33250A
import
Agilent33250A
import
Sis33
import
RemoteObject
try
:
import
Sis33
hasSis33
=
True
except
:
print
'Error while loading Sis33 module, skipping it'
waveforms
=
(
RemoteObject
,
SineWaveform
,
TTWaveform
)
generators
=
(
Agilent33250A
,
RemoteObject
)
if
hasSis33
:
adcs
=
(
RemoteObject
,
Sis33
)
else
:
adcs
=
(
RemoteObject
,
)
waveforms
=
(
SineWaveform
,
)
generators
=
(
Agilent33250A
,
)
adcs
=
(
Sis33
,
)
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