Trapezoid Voltage
Trapezoidal voltage source
Parameters
Name | Default | Description |
---|---|---|
V | 1 | Amplitude of trapezoid [V] |
rising | 0 | Rising duration of trapezoid [s] |
width | 0.5 | Width duration of trapezoid [s] |
falling | 0 | Falling duration of trapezoid [s] |
period | 1 | Time for one period [s] |
nperiod | -1 | Number of periods (< 0 means infinite number of periods) |
offset | 0 | Voltage offset [V] |
startTime | 0 | Time offset [s] |
PyAMS definition
from PyAMS import Signal from PyAMS import Trapezoid #Source for Trapezoid voltage class SourceVTrapezoid: def __init__(self, a, b): self.Vt = Signal('out','voltage',a,b) self.Va=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.Vt,self.Amplitude,self.Rising, self.Width,self.Falling,self.Period,self.NPeriod,self.Offset,self.StartTime)
Documentation generated by PyAMS