PyAMS  (the software under revision)

Trapezoid Current


Trapezoidal Current source

Parameters

NameDefaultDescription
I1Amplitude of trapezoid [A]
rising0Rising duration of trapezoid [s]
width0.5Width duration of trapezoid [s]
falling0Falling duration of trapezoid [s]
period1Time for one period [s]
nperiod-1Number of periods (< 0 means infinite number of periods)
offset0Current offset [A]
startTime0Time offset [s]

PyAMS definition

from PyAMS import Signal
from PyAMS import Trapezoid

#Source for Trapezoid Current
class SourceITrapezoid:
     def __init__(self, a, b):
         self.It = Signal('out','current',a,b)
         self.Amplitude=1.0  #Amplitude of trapezoid
         self.Rising=0       #Rising duration of trapezoid
         self.Width=0.5      #Width duration of trapezoid
         self.Falling=0      #Falling duration of trapezoid
         self.Period=1       #Time for one period
         self.NPeriod=-1     #Number of periods (< 0 means infinite number of periods)
         self.Offset=0
         self.StartTime=0
     def analog(self):
         Trapezoid(self.It,self.Amplitude,self.Rising, self.Width,self.Falling,self.Period,self.NPeriod,self.Offset,self.StartTime)  

Documentation generated by PyAMS .