Example #1
0
 def triangle(self, midpoint, peak, period, phase):
     """set output to a triangle waveform"""
     return libpysmu.set_output_wave(self.dev, self.chan, self.mode, 5, midpoint, peak, period, phase, 42)
Example #2
0
 def sine(self, midpoint, peak, period, phase):
     """set output to a sinusoidal waveform"""
     return libpysmu.set_output_wave(self.dev, self.chan, self.mode, 4, midpoint, peak, period, phase, 42)
Example #3
0
 def sawtooth(self, midpoint, peak, period, phase):
     """set output to a sawtooth waveform"""
     return libpysmu.set_output_wave(self.dev, self.chan, self.mode, 2, midpoint, peak, period, phase, 42)
Example #4
0
 def stairstep(self, midpoint, peak, period, phase):
     """set output to a stairstep waveform"""
     return libpysmu.set_output_wave(self.dev, self.chan, self.mode, 3, midpoint, peak, period, phase, 42)
Example #5
0
 def square(self, midpoint, peak, period, phase, duty_cycle):
     """set output to a square waveform"""
     return libpysmu.set_output_wave(self.dev, self.chan, self.mode, 1, midpoint, peak, period, phase, duty_cycle)