Source waveforms

Set DC, AC and time-domain values on Spice++ sources: SIN, PULSE, PWL, EXP, SFFM and AM, with examples.

A source value can combine a DC level, an AC magnitude and phase for .ac, and one time-domain function for .tran.

Functions

FunctionArguments
SINoffset, amplitude, frequency, delay, damping, phase
PULSEv1, v2, delay, rise, fall, width, period
PWLtime and value pairs
EXPv1, v2, rise delay, rise tau, fall delay, fall tau
SFFMoffset, amplitude, carrier frequency, modulation index, signal frequency
AMamplitude, offset, modulating frequency, carrier frequency, delay

Examples

5
DC 0 AC 1
SIN(0 1 1k)
PULSE(0 5 0 1n 1n 0.5m 1m)
PWL(0 0 1m 5 2m 5 3m 0)