Commit 44a077c1 authored by Matthieu Cattin's avatar Matthieu Cattin

Add a function to set SYNC output ON/OFF

parent e6a85ee5
...@@ -109,6 +109,25 @@ class Agilent33250A(Generator): ...@@ -109,6 +109,25 @@ class Agilent33250A(Generator):
self.command("OUTP %d" % (1 if status else 0)) self.command("OUTP %d" % (1 if status else 0))
return locals() 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 @Property
def function(): def function():
......
Markdown is supported
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