Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
pts
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
pts
Commits
f95be05c
Commit
f95be05c
authored
Jan 26, 2012
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a function to set SYNC output ON/OFF
parent
49f32043
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
Agilent33250A.py
test/fmcadc100m14b4cha/python/PAGE/Agilent33250A.py
+19
-0
No files found.
test/fmcadc100m14b4cha/python/PAGE/Agilent33250A.py
View file @
f95be05c
...
...
@@ -109,6 +109,25 @@ class Agilent33250A(Generator):
self
.
command
(
"OUTP
%
d"
%
(
1
if
status
else
0
))
return
locals
()
# sync output
@
Property
def
sync
():
doc
=
"Sync output status of the generator"
def
fget
(
self
):
self
.
command
(
"OUTP:SYNC?"
)
output
=
self
.
comm
.
read
(
2
)[
0
]
return
output
==
"1"
def
fset
(
self
,
status
):
if
type
(
status
)
is
not
bool
:
return
self
.
command
(
"OUTP:SYNC
%
d"
%
(
1
if
status
else
0
))
return
locals
()
@
Property
def
function
():
...
...
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