pwlr()

Piecewise-linear repeated function

Syntax
pwl(time, Ncycles, T1, V1, T2, V2, ..., Tn, Vn)

Arguments
Name Description Range Type Required
time program time variable (0, ∞) real yes
Ncycles number of cycles that waveform is to be repeated [1, ∞) integer yes
T1, T2, ..., Tn † time points (0, ∞) real yes
V1, V2, ..., Vn † value at time points t1, t2, ..., tn (-∞, ∞) real yes
† a minimum of one time-value pair should be specified

Examples

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

See Also

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

Notes/Equations

This expression creates a time-periodic piecewise linear pulse train, which is repeated for specified number of cycles. 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 pwlr() Function
 

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

Contents
Additional Resources