
The scope is where a run turns into answers: the output voltage against its target, the ripple of one period, the efficiency, the dead time between two gate edges. Every reading in the window is a command too, so a script or an agent reads the same numbers you see. This page covers the scope in depth. For error links, the live preview of a running simulation, binary waveform files and drag and drop, see errors and the scope.
Signals in groups you can fold
In the next release. The Signals list sorts a run's signals by what they measure: Voltages, Currents, Control signals (gate signals, duties, controller outputs, flags), Losses & energy (E(…) and power meters), Thermal (T(…)), Mechanical (shaft and rotor signals of a motor drive), Math, References and Imported. Each header shows its count, and a group with nothing in it is left out. A voltage or current meter lands with the voltages or currents whatever its net is called, and a signal that feeds a PWM block's duty input lands with the control signals.
- Click a header to close or open the group. Each circuit remembers which groups you closed, and a closed group still lists the signals it has on the scope, so a shown trace never vanishes from the list.
- Right-click a header for Show all or Hide all.
- Type in the filter box and every group with a match opens; clear it and the groups go back to how you left them.
- Signals inside parts (a source's series resistance, the nets inside a subsystem) are hidden until you tick Show internal signals. Then each part gets a closed sub-group of its own, so a large controller does not flood the list.
Already in 0.9.0: when nothing is ticked, a run picks up to four signals for you: an output voltage first, then inductor currents, then other voltages and currents. It skips flat signals and switching signals that would draw as a solid block.
Results panel: Summary, Signals, Power, Runs
In the next release. The panel beside the plots has four tabs: Summary, Signals, Power and Runs (with the number of runs). Summary opens with a context line (steady state, the last 5 of N switching periods, the window, the PWM duty) and one Copy ▾ menu, then three cards in a row that read the window you are looking at (or the window between the cursors): Output against its Test Bench target, green with a tick or amber with Check when the spec gives a limit, Ripple as a share of the mean (over the last five switching cycles when the window holds more, so the start-up does not read as ripple), and Efficiency with the loss. Numbers are monospaced with smaller units.
Efficiency needs no setup. The scope looks for the input (a DC source or battery to ground) and the output (a resistor or power load to ground), preferring nets named in… and out…, and shows Pin · Pout · loss with the parts it used. When it cannot find them, it says why and you add the pair by hand.
Below the cards sits one aligned table with a row per shown signal, in two groups: Power stage (v(…) and i(…)) and Control signals, each with a dot in its trace's colour and right-aligned numbers. A 0/1 PWM signal reads duty 26.0% instead of a mean. Frequency and duty read under the rows of the signals that have them, never as a column of dashes. Each row's … menu holds the FFT, the signal's own measurements, its frequency and duty, its values at the cursors with their difference, minimum and maximum, and a copy of its row. The three latest runs follow, with All N runs →. Measurements to show picks the columns, in four groups: Basic (mean, RMS, min, max, p-p, peak and valley with their times), AC (AC RMS, crest factor, frequency, period, duty, THD), Transient (overshoot, undershoot, rise, fall and settling time with its band) and Power. Copy ▾ puts the table as CSV or tab-separated plain SI numbers on the clipboard for a spreadsheet; the column picker and the copy buttons are in 0.9.0 already.
Every figure comes from scope.summary, which returns the rows, the output card, the duty, the automatic power and the window in switching periods.
Several references, each a tagged run
In the next release. Keep as reference keeps the latest run on the plot, drawn dashed under every later run, in a colour and dash of its own. Keep up to 8 per circuit. A reference is not a copy of the waveforms: keeping one tags that run in the Run History (Ref 1, Ref 2, or the tag it already had), so it is saved with the circuit and measured in the Δ vs latest table like any overlaid run. The References list shows, hides, renames, restyles or removes each one; an imported bench measurement is listed there too, as Measured. Scripts use scope.references with add, list, show, rename, style, remove and clear.
Duty in percent, and a second unit on the right
In the Quick tab, voltages, currents, duties and other signals go on separate plots stacked on one time axis, so a 100 V trace does not flatten a 1 A trace. In the next release. A signal that feeds a PWM block's duty input is a ratio, so its axis, legend and measurement values read in percent (24%, not 240m); exports and scripts keep the ratio itself.
In the next release. Plot 1, Plot 2, … beside a shown signal moves it to the next plot, and a plot that holds traces in two units labels its left axis with the first and adds a right axis with the second, on the same scale, with each legend value in its own trace's unit. Already in 0.9.0: Add Plot and Remove Plot in the toolbar split a crowded plot or merge the lowest one into the one above. For a set of signals you look at often, the + tab makes a named scope that is saved with the circuit (scope.new, scope.addSignal), with up to eight y axes.
Read a dense trace
In the next release. Each plot labels four to eight round values on its y axis, with as many digits as the step needs, so a 105 V output with a volt of ripple reads 105V 105.5V 106V. Move the pointer over a plot and a crosshair snaps to the nearest sample: the header reads the time and each trace's value, and every time plot shows the same moment.
A switching trace over thousands of cycles would fill a solid block. The scope draws it as an envelope instead: a light fill between thin max and min lines, with the cycle average bold on top, and says envelope: zoom in to see each cycle. Zoom to 5 Cycles (Scope › Zoom to 5 Cycles, menu id scope.zoomCycles) narrows the view, about its middle, to five periods measured from the trace's repeating swing. A trace with no repeating swing in view says so instead.
In the next release. After such a run the plots open on its last 5 switching periods, the steady state, readable without zooming. A thin overview strip above them shows the whole run with a box where you are looking: drag the box to move, drag its edges to resize, click to jump. Whole run and Last cycles in the plot header choose what the next run opens on (menu ids scope.wholeRun, scope.lastCycles). With the pointer over the plots, ← and → page the view one window at a time and Shift+← / Shift+→ one switching period. The overview strip in the manual.
Cursors and measurements
Cursors (C over the scope) puts two vertical lines on the plot. The readout gives both times, Δt and 1/Δt, and the measurements then read between them. Put the cursors one switching period apart and 1/Δt reads the switching frequency, while a Δ near zero in a row tells you the circuit has reached steady state. From a script, scope.cursors gives the values at both cursors, dt, 1/dt, the change in each signal and the mean and RMS between.
scope.measure returns everything at once for chosen signals and a window: statistics, THD against a fundamental, real and reactive power from a voltage and a current, duty and frequency of a switching waveform, oscillation and step-response figures.
Math signals
A math signal is computed from the others after every run and then behaves like any signal: it is listed (marked ƒ), plotted, measured and exported, and it is saved with the circuit. The + icon beside the signal filter opens scope.addMath; right-click a voltage and choose Math: power v·i for instantaneous power. Expressions use the signals as listed, SI prefixes, the usual operators and functions, and three operators over time: ddt(x) for the derivative, integ(x) for the running integral (energy from power, charge from current) and avg(x, T) for a moving average over T seconds. For example integ(v(in)*i(V1)) or avg(abs(i(L1)), 20u). When the latest run cannot compute one, the Math section says why.
Power and efficiency
The Power tab shows Pin, Pout, the loss and the efficiency found in the circuit, then adds power rows from any voltage and current (the table appears with the first row): P (mean of v·i), S (Vrms·Irms), Q, Q₁ (the signed reactive power of the fundamentals) and PF. With two rows or more an Efficiency line gives η = Pout/Pin for the rows you pick. Right-click a voltage and choose Power with › a current for a quick row. The same figures come from scope.power and scope.efficiency. Measure over whole periods for exact figures on AC or switching signals.
FFT, XY and logic lanes
- FFT. The FFT icon on a signal row shows its spectrum over the visible window (
analysis.fft). In the next release: a Spectrum icon in each plot's header turns the whole plot into its spectrum and back. - XY Mode plots every shown signal against one you pick in the X: list, for a phase portrait or a current against a voltage.
- Logic Lanes draw 0/1 signals as thin logic lanes and whole-number signals with 2 to 16 levels (a state index, a counter) as bus lanes under the plots, with a state machine's state names printed in place of numbers. A cursor can snap to a lane's edges, so
dtreads a PWM period, a dead time or the delay from a flag to a gate, and a trigger can set the view on the first rising or falling edge. Logic lanes in the manual. - In the next release. Named markers and edge search. Place as many named markers as you need (A, B, C… or your own labels); they are saved with the scope, and the readout lists the time between them. [ and ] move cursor 1 to the previous or next edge of a trace: a logic change, or the crossing of an analog trace's middle level. A bus lane prints its values in hex, binary, unsigned, signed or by name. Markers in the manual.
Plots in windows of their own
Open in Separate Window (or View › Detach Scope) moves the whole scope into its own window, which follows the circuit tab you pick and reopens where you left it, also on a second monitor. Scope › Plot Windows › Detach All Plots gives each plot a window, tiled over the screen in a grid, and Scope › Plot Windows › Tile Plot Windows and Scope › Plot Windows › Dock All Plots lay them out again or bring them back. Edit › Preferences › After each run chooses what a run does: Keep in the dock, Whole scope in one window (the default) or Each plot in its own window. A run started by a script or an agent leaves the windows alone.
While the results are in another window, the dock gives the canvas its space back. In the next release: if the Scope is the tab you picked, the dock shows one line after a run, Results opened in the scope window · Bring to front, so a run never lands you on an empty tab.
Export CSV, PNG and SVG
Save Image writes a PNG of the plots as shown or a vector SVG with axes, tick labels with units and a legend, ready for a report; Copy Image puts the PNG on the clipboard. Export data writes the shown signals as CSV, for the visible window or the whole run, at full resolution, or copies the visible window as CSV text. scope.export does the same from a script, with a choice of signals, window and image size.
The same gestures as the schematic
In the next release. The plots answer the mouse and trackpad as the schematic does: a drag pans (or draws a box with Zoom Box on), Cmd-drag zooms to a box, a double click fits, and the right button opens the menu. The toolbar holds the icons used most, in three groups (the rest are in the Scope menu), and every icon names itself, its key and what it does on hover. The full gesture set.
From a script
Open the buck example, run it, and read one 100 kHz switching period at the end of the run:
powercraft-cli run --root work --cmd file.openExample --params '{"name":"buck"}' \
--cmd simulation.run --params '{}' \
--cmd scope.summary --params '{"t0":"3.99m","t1":"4m"}' \
--cmd scope.cursors --params '{"t1":"3.99m","t2":"4m","signals":["v(out)","i(L1)"]}' \
--cmd scope.addMath --params '{"expr":"v(out)*i(R1)","name":"pout"}' \
--cmd scope.power --params '{"v":"v(out)","i":"i(R1)","t0":"3.99m","t1":"4m"}' \
--cmd scope.export --params '{"format":"svg","path":"buck.svg","t0":"3.9m","t1":"4m"}'
scope.summary (in the next release) finds Vin as the input and R1 as the load by itself and reports the efficiency with the output card. Each command prints one JSON line. Scripting every step.
The manual has every button, column and option: the scope. See also the schematic editor and analyses.