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):
self.command("OUTP %d" % (1 if status else 0))
return locals()
# sync output
def sync():
doc = "Sync output status of the generator"
def fget(self):
output =[0]
return output == "1"
def fset(self, status):
if type(status) is not bool:
self.command("OUTP:SYNC %d" % (1 if status else 0))
return locals()
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