How to set up a sweep 01 Load a circuit. The Diode I–V curve preset sweeps a 1N4148 through a 1 kΩ resistor; the Resistive divider preset gives a linear ramp. 02 Open DC Sweep and set Source (V1), Start, Stop and Step; the preset fills these from its .dc directive. 03 Set the probe in the probe field — V(b) for a node voltage, I(D1) for a branch current; several probes can be comma-separated. 04 Read the plot and the status line sweep points, total iterations, final residual and any warning. 05 Compare shapes. A resistor gives a straight line; a diode gives the exponential knee, which is the whole reason to sweep.
Worked readouts With the 1 kΩ diode stage (V1 a 0 DC 0, R1 a b 1k, D1 b 0 1N4148), sweeping V1 from 0 to 1 V in 0.01 V steps:
V1
V(b)
I(D1)
0.50 V
0.449169V
50.83µA
0.60 V
0.485834V
114.2µA
0.70 V
0.509124V
190.9µA
0.80 V
0.525576V
274.4µA
1.00 V
0.548171V
451.8µA
The run reports 101 points, 257 Newton iterations in total and a largest residual of 1.58e-10 . The same tab on the Resistive divider, V1 0 → 5 V step 0.05, gives 101 points, V(out) ending at 3.75V , I(V1) ending at −0.00125A , 101 iterations and largest residual 4.34e-19 — one iteration per point, because a linear circuit solves directly.
Why the curve bends The diode follows the Shockley relation I = Is(e^(V/(nVt)) − 1), so the junction voltage grows logarithmically with current: from 0.50 V to 1.00 V the source doubles, but V(b) rises only from 0.449169V to 0.548171V while the current grows from 50.83µA to 451.8µA — nearly a factor of nine. Plotting the probe against V1 turns that into the familiar knee. The divider, by contrast, obeys V(out) = V1 · R2/(R1 + R2), so its plot is a straight line through the origin.
Limits
One swept source at a time. Nested or two-dimensional sweeps are not offered; run the second variable by hand and re-plot. Temperature is not a sweep axis either. Probes are V(node) and I(element). Power probes such as P(R1) are not accepted in the probe field — compute power from the plotted V and I, or read it in the Operating Point table. What it doesn't do. It does not integrate in time, transform to the frequency domain or fit a model to the curve; use the transient tab for time, the Science Lab for spectra, and step-by-step if the exponential equation itself needs solving.
The linearity trap A sweep of a resistor network is linear in the source, so doubling V1 doubles V(out); a sweep containing a junction is not. The diode rows show it: V1 from 0.50 V to 1.00 V doubles, but V(b) moves only from 0.449169V to 0.548171V . Do not extrapolate a diode curve from two points or read the knee off the supply axis — the interesting voltage is V(b), and the interesting quantity is the current.
Where it is useful Characterising a clipping or rectifier stage Sweep the input of a clipper or rectifier and watch where the curve leaves the straight line; that corner is the diode turning on. The numbers above put the 1N4148 at 190.9µA for a 0.509124V junction at V1 = 0.7 V, a useful reference point before building the circuit.
Checking a sensor divider A resistive sensor changes resistance, but sweeping the supply shows the output range you can expect and whether the divider stays proportional. The preset answer — 3.75V out for 5V in, current −0.00125A — is the linear baseline against which any added nonlinear element is measured.
Privacy Sweeping, solving and plotting all run locally in your browser; nothing is uploaded.
References
Wikipedia, Diode modelling , en.wikipedia.org (访问日期:2026-10-07)— Shockley equation and the I–V knee.
Wikipedia, SPICE , en.wikipedia.org (访问日期:2026-10-07)— .dc sweep directive and source syntax.
Wikipedia, Voltage divider , en.wikipedia.org (访问日期:2026-10-07)— the linear output relation.
Wikipedia, Newton's method , en.wikipedia.org (访问日期:2026-10-07)— why nonlinear points cost iterations.
Calculators in this hub
Hand-picked tools, one click away. The mini versions compute live and carry your values into the full calculator.
Sources & review
Reviewed by CalcX Editorial Team
Updated 2026-10-07