Trapezoidal current source
Library
Electrical/Analog/Sources
Description
This is a trapezoid current source. The current flowing from pin p (left) to pin n (right) is equivalent to a trapezoid signal (see Blocks/Sources/Trapezoid) with amplitude = I .
Parameters

- I [A] : Amplitude of trapezoid (I): Scalar.
- rising [s] : Rising duration of trapezoid (>=0) (rising): Scalar.
- width [s] : Width duration of trapezoid (>=0) (width): Scalar.
- falling [s] : Falling duration of trapezoid (>=0) (falling): Scalar.
- period [s] : Time for one period (>0) (period): Scalar.
- nperiod [-] : Number of periods (< 0 means infinite number of periods) (nperiod): Scalar.
- offset [A] : Current offset (offset): Scalar.
- startTime [s] : Time offset (startTime): Scalar.
Ports
- Port 1 at left position: implicit input fixedport numbered 1.
- Port 1 at right position: implicit output fixedport numbered 1.