pwl()

Piecewise-linear function

Syntax
pwl(time, T1, V1, T2, V2, ..., TN, VN)

Name Description Range Type Required
time program time variable (0, ∞) real yes
T1, T2, ..., TN time points (0, ∞) real yes
V1, V2, ..., VN value at time points T1, T2, ..., TN (-∞, ∞) real yes

Examples

This example assumes that a transient simulation is performed using:
StartTime = 0, StopTime = 100ns, MaxTimeStep = 50ps
This expression creates a single piecewise linear pulse:
value = pwl(time, 0ns, 0V, 5ns, 1V, 10ns, 2V, 20ns, 0V, 30ns, 1.5V)

See Also

cos_pulse(), damped_sin(), erf_pulse(), exp_pulse(), pulse(), pwlr(), ramp(), step()

Notes/Equations

This expression creates a time-periodic piecewise linear pulse train. It can be used to create a current or voltage pwl pulse using the ItUserDef or VtUserDef time domain sources. Alternately, the built-in time domain current or voltage source component, ItPwl or VtPwl can be used.
The piecewise linear values versus time points are specified as (Ti, Vi) pairs. A minimum of one time-value pair should be specified. Each pair specifies a value for a time=Ti. The intermediate values at time points that are not specified are interpolated.
The output is calculated as follows:

The pwl() Function
 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources