Skip to content

Commit

Permalink
fix set offset
Browse files Browse the repository at this point in the history
  • Loading branch information
clavay committed Nov 18, 2019
1 parent cc92f86 commit 154059b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscada/visa/devices/Tektronix_AFG1022.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def afg_set_output_state(self, ch=1, state=True):
return self.inst.query('OUTP%d:STATe OFF;*OPC?;' % ch)

def afg_set_offset(self, ch=1, offset=0):
return self.inst.query('SOUR%d:VOLT:LEV:IMM:OFFS %s' % (ch, offset))
return self.inst.query('SOUR%d:VOLT:LEV:IMM:OFFS %sV;*OPC?;' % (ch, offset))

def afg_set_vpp(self, ch=1, vpp=1):
return self.inst.query('SOUR%d:VOLT:LEV:IMM:AMPL %sVpp;*OPC?;' % (ch, str(vpp)))
Expand Down

0 comments on commit 154059b

Please sign in to comment.