Home
Ec-SimGUIDE
Ec-Sim user guide

Reading results: oscilloscope, math waveforms and spectrum

Zooming, panes and cursors on the oscilloscope, math expressions for efficiency, ripple and energy, spectrum and THD, CSV export and the detached window.

11Analyze results

The oscilloscope

Zoom into any edge, stack panes, and measure with cursors.

Zoom and pan

Drag a boxZoom into that time and voltage range.
Mouse wheelZoom time; over a Y-axis strip, zoom only that axis.
Click a Y axisType an exact maximum, centre or minimum, or reset to auto.
Double-clickFit everything again.

Zooming never loses detail: the plot keeps every simulated point, even a nanosecond spike in a long run.

Cursors, panes and statistics

Oscilloscopecursors
V(SW) P1V(OUT) P1 Signals Math+ PaneCursorsFFTCSV
C1C212V0V
Δt = 5.60 µs1/Δt = 178.7 kHz

Cursors adds C1 and C2: read Δt, 1/Δt and each trace's values and difference. + Pane stacks another plot; click a trace's P1/P2 badge to move it between panes. Hover a trace name for its RMS, peak-to-peak and average over the visible window.

NextMath waveforms
12Analyze results

Math waveforms

Compute new traces from any simulated signal: efficiency, ripple, energy, averages.

Writing an expression

Math opens the expression editor. Use any signal, probed or not: V(OUT), I(L1), P(M1), Ploss(D1). Converter circuits also get Pin, Pout, Vin, Vout, Iin and Iout.

avg(Pout, 1.25u) / avg(Pin, 1.25u) · 100

Efficiency in %, averaged over one 800 kHz switching period.

Functions

In depthAll operators and functions
Calculusavg(x [, T]) rms(x [, T]) d/dt(x) integ(x) smooth(x [, N])
Arithmetic+ − * / ^ % cond ? a : b < > == != && || !
Mathabs sqrt cbrt pow hypot exp ln log10 log2 min max clamp sign floor ceil round trunc
Trigonometrysin cos tan asin acos atan atan2 sinh cosh tanh
SignalsV() I() P() Ploss() Pin Pout Vin Vout Iin Iout
Constantst pi e and SI suffixes p n u m k M meg

avg and rms with a period T give a sliding window (one switching cycle); without it, the running value from the start.

NextSpectrum, export & windows
13Analyze results

Spectrum, export & windows

Frequency content and distortion, data export, and a second monitor.

Spectrum and THD

FFT shows a trace's spectrum in dB and its total harmonic distortion. It analyses the second half of the run by default, past the start-up; change the window to analyse another part.

Spectrum (FFT) & THDV(OUT)
f₀2f₀3f₀4f₀5f₀6f₀7f₀8f₀THD: 1.32 %
Harmonics of the fundamental in dB; THD sums them relative to the fundamental.

CSV export and detached window

CSV saves every trace for a spreadsheet or Python. Detach moves the oscilloscope to its own window, for a second monitor; close it to bring it back. Ctrl+P prints the schematic on page 1 and a large plot on page 2.

NextBoard temperature: the idea
Missing something? The release notes in the Help menu list what changed recently.