Circuit data
SPICE PWL resampler
Sample a numeric PWL source on a chosen time grid and export CSV.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
Interpolate linearly between consecutive supplied pairs. Apply SPICE scale suffixes: m is milli; meg is mega. Sample start+k×step without extrapolation.
PWL(0 0 1m 2 2m 0) sampled every 0.5 ms yields values 0,1,2,1,0.
Limits
At most 10000 points/samples. Times must increase strictly; repeated-time discontinuities, r/td, expressions and full netlists are excluded. Output values retain the source’s native volts or amps; no circuit simulation is performed.