PyAMS  (the software under revision)

Pulse Voltage


Pulse voltage source

Parameters

NameDefaultDescription
Va1Amplitude of pulse [V]
Width50Width of pulse in % of period
Period1e-3Time for one period [s]
Offset0Voltage offset [V]
StartTime0Time offset [s]

PyAMS definition

from PyAMS import Signal
from PyAMS import Trapezoid

#Source for Puls voltage
class SourceVPulse:
     def __init__(self, a, b):
         self.Vp = Signal('out','voltage',a,b)
         self.Va=1.0  #Amplitude of trapezoid
         self.Width=50       #Width of pulse in % of period
         self.T=1e-3       #Time for one period
         self.Offset=0
         self.StartTime=0
     def analog(self):
         Trapezoid(self.Vp,self.Va,0,self.T*self.Width/100,0,self.T,0,self.Offset,self.StartTime)

Documentation generated by PyAMS