Source code for socs.agents.tektronix3021c.drivers

"""Michael Randall
    mrandall@ucsd.edu"""

from socs.common.prologix_interface import PrologixInterface


[docs] class TektronixInterface(PrologixInterface):
[docs] def set_freq(self, freq): self.write('SOUR:FREQ {:.3f}\n'.format(freq))
[docs] def set_amp(self, amp): self.write('SOUR:VOLT {:.3f}\n'.format(amp))
[docs] def set_output(self, state): self.write('OUTP:STAT {:.0f}\n'.format(state))