PyAMS  (the software under revision)

Pulse Current


Pulse Current source

Parameters

NameDefaultDescription
I1Amplitude of pulse [A]
Width50Width of pulse in % of period
Period1Time for one period [s]
Offset0Current offset [A]
StartTime0Time offset [s]

PyAMS definition

from PyAMS import Signal
from PyAMS import Trapezoid

#Source for Puls Current
class SourceIPulse:
     def __init__(self, a, b):
         self.Ip = Signal('out','potential',a,b)
         self.Amplitude=1.0  #Amplitude of trapezoid
         self.Width=50       #Width of pulse in % of period
         self.Period=1       #Time for one period
         self.Offset=0
         self.StartTime=0
     def analog(self):
         Trapezoid(self.Ip,self.Amplitude,0,self.Period*self.Width/100,0,self.Period,0,self.Offset,self.StartTime)

Documentation generated by PyAMS