Example #1
0
 def triangle(self, midpoint, peak, period, phase):
     """Set output to a triangle waveform."""
     return _pysmu.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 _pysmu.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 _pysmu.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 _pysmu.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 _pysmu.set_output_wave(self.dev, self.chan, self.mode, 1,
                                   midpoint, peak, period, phase,
                                   duty_cycle)