18. The Test Bench: run one test case and see it against its limits
spec.verify (chapter 16) checks every corner of a spec in one go and answers with a table. The Test Bench
runs the same checks one case at a time and keeps each run's waveforms, so you can look at a failing row on the
scope, with its limit drawn on it, fix the circuit, run the case again and compare the two runs.
Choose Simulation > Test Bench > Open Test Bench.
- The Spec section, from its Targets rows down.
- The Test Bench's own cases: tick Start-up, Line step or Hold-up to add them.
- List Cases.
The cases
Fill in the Spec section at the top: the same rows as the Auto Design form (chapter 16), with the nominal input,
the output voltage and the maximum load current under Required, the other targets below them and the temperature
and loop-margin limits closed under Limits. Use spec from Auto Design fills it with the spec Auto Design opens
with: its last run's, else the open converter's input, output and load current (marked from circuit). A spec you
already have as JSON goes in through Paste JSON (at the end of the window's top row) and Apply, for example
{"vin":{"min":44,"nom":48,"max":52},"vout":{"nom":12,"tolPct":2},"iout":{"min":4,"max":5}}. Then press
List Cases. Listing simulates nothing, and the Spec section closes so the cases have the room; click it to open it
again.
Under the rows, Test Bench cases holds the cases only the Test Bench runs. Tick Start-up (maximum start-up
time and overshoot), Line step (an input step with its deviation and settling limits) or Hold-up (how long the
output holds after the input is cut, and the lowest input voltage) to add that case with its limits, each field with
its unit (6m in a seconds field is 6 ms); untick it to remove the case. Circuit binding picks the input source,
the load and the output net when the automatic choice is wrong. The automatic choice also covers the bridge
converters: the dab, psfb and llcHalfBridge examples list and run their cases without a binding, and a DAB's
output source is replaced by a load resistor in each case's copy (a note under the cases says so). Edit as JSON (beside it) shows the whole spec as JSON text in
the same box as Paste JSON, to read or change any field; Apply writes it back.
- List Cases.
- A case that has not run.
- Run All Cases.
- Re-run Failed.
| Case | What it runs | Its limits |
|---|---|---|
Corner (corner-48V-5A) |
The circuit at one input and load, from its initial state until the output settles | Regulation (the band around the output), ripple |
| Start-up | The nominal input at full load | Start-up time (a window up to startup.maxTime), overshoot (a line), regulation |
Load step (loadStep-48V) |
The bench spec.verify uses: the load steps from loadStep.from to loadStep.to at the end of the first run (ramping at loadStep.slew A/µs when given) and back at the end of the second |
The largest swing after the step and after the release (a line each; the note gives the undershoot and overshoot in mV and the settling time in µs), recovery (a window from the step) |
Pre-biased start-up (preBias) |
The nominal input at full load, from the circuit's own initial state with the output capacitor already at half the output voltage | The peak output (a line at the spec's start-up overshoot, when it gives one) and the reverse inductor current a synchronous converter pulls out of the output (shown only) |
| Hold-up | The input is cut at the end of the first run (holdUp {time, vMin} in the spec) |
The time until the input falls to vMin |
| OCP | Full load at the input design.protection names |
The peak inductor current stays below the current trip |
| OVP | Start-up at the highest input and the lightest load | The peak output stays below the over-voltage trip window |
| UVLO | The lowest input at full load | The input stays above the under-voltage start window |
| Inrush | Switch-on into the discharged input | The peak input current |
The OCP, OVP, UVLO and inrush cases come from design.testPlan (chapter 16). A test-plan step that no simulation
can show (efficiency, a release threshold, a part check, a hipot test) is not a case; the command reply lists it
under notSimulated with the reason.
A mains (AC-input) spec
A converter fed from the mains, such as a PFC, takes the spec spec.verify takes for it (vinAc, fline, vout,
pout, pf, thd, holdUp; chapter 16), for example {"vinAc":[90,264],"vout":400,"pout":500,"pf":0.98,"thd":10}.
The circuit needs the same parts spec.verify finds: one sine voltage source for the mains, the load resistor on
the DC link and the meter signals vac and iac. The cases then are:
| Case | What it runs | Its limits |
|---|---|---|
AC corner (acCorner-230V-500W) |
One line voltage and one output power, read over two whole line cycles | Power factor and input-current THD (limits from pqFromLoadPct of full load up, shown only below it), with harmonics (classA or classD) the harmonic nearest its IEC 61000-3-2:2018 limit in percent of it, DC link ripple at twice the line frequency, regulation, efficiency at full load |
AC load step (acLoadStep-230V) |
The load steps from the lightest to the full output power at the nominal line, at a zero crossing of the line | The largest DC link deviation (shown only), then regulation, power factor, THD and ripple once settled |
AC line step (acLineStep-230to90V) |
The line voltage steps from the nominal to its lowest (and to its highest) value at full load | The same as the load step |
AC hold-up (acHoldUp-90V) |
The mains is cut at full load into a constant-power load | The time the DC link stays above holdUp.vMin |
AC inrush (acInrush-264V) |
The circuit switched on cold at the highest line and full load, at the line's peak: every capacitor, inductor and controller state starts at zero, so the bulk is empty and the NTC, its bypass relay and the soft start drawn in the circuit (design.inputProtection with apply) meet it |
Each diode's peak current and largest ∫i²dt over 10 ms in percent of its data sheet IFSM and I²t (at most 100; a diode without a rating is named as not checked), the largest diode current, and the DC link's peak against 1.1·vout |
AC dip (acDip-0pct-10ms-230V, acDip-70pct-500ms-230V) |
The dips of IEC 61000-4-11:2020 Table 1: the line to 0 % for half a cycle and to 70 % for 25 cycles (30 at 60 Hz), from a zero crossing at full load, at 230 V when the line range holds it, else at the nominal line | The DC link's lowest value against holdUp.vMin, and its largest deviation (shown only) |
In these cases vin is the line voltage in volts rms and iout the output power in watts. The protection trips
and the surge of IEC 61000-4-5 are not simulated.
A three-phase inverter spec
An inverter spec (vdc with grid or acOut, chapter 16) lists the corners spec.verify reads, on the circuit
design.auto drew for it (the cases need its variables Vdc, Pref and Qref; another circuit is refused with
the variable it lacks). The inverter verification runs on Voltecx Cloud, as design.auto does.
| Case | What runs | Limits |
|---|---|---|
Inverter corner (inverterCorner-750V-10000W) |
One DC link and one output power at unity power factor, read over whole line cycles after the settling cycles; a grid-tie spec with pf.capability adds the lowest link at full power feeding reactive power (…-var) |
The distortion as the spec's standard measures it (IEEE Std 1547-2018 Table 26 TRD at every corner, IEC 61727:2004 Table 1 current THD at rated output, or the IEEE Std 519-2014 Table 1 voltage THD of an AC output), the power factor (grid, unity corners) or the output voltage regulation (AC output), the DC link ripple, and the efficiency at full power (shown only) |
Ride-through (inverterRideThrough-800V) |
With rideThrough, the grid sags to residualPu for duration at the nominal link and full power |
The peak bridge current through the sag, per unit of the rated peak, against maxCurrentPu |
In these cases vin is the DC link in volts and iout the output power in watts. The start-up, the grid
synchronisation and the protection trips are not simulated.
Run and read a case
Click a case to run it. A case that has run shows its latest run instead; press Run Case to run it again. Run All Cases runs every case in parallel, and Re-run Failed runs only those that failed or could not be measured. Each run is a background job, so the status bar shows progress and Cancel.
- The case, with its verdict.
- The regulation band drawn on the plot of v(out).
- The table of limits.
Each case has a chip: Pass, Fail, Not measured (the run or a reading failed; hover over the limit for the reason) or Not run. A ⟳ after the title means the circuit changed after the run.
The scope on the right shows one plot per signal of the case. Each limit is drawn on its signal:
- a band is a shaded area between two levels (the regulation band, a trip window);
- a line is a dashed level (the overshoot limit, the current trip);
- a window is a pair of dashed vertical lines (the start-up time allowed, the recovery time after a step).
Below the plots, the table gives each limit's measured value, what is required, the margin to the nearest bound (negative when outside) and the verdict.
Compare two runs
Pick another run in Compare with: (above the plots). Its traces are drawn dashed on the same plots, and the table adds its measured values and the difference. A typical use: run a case, change a part, run it again, overlay the first run.
Check a bench measurement
Pick a case, then press Add bench measurement… under the Cases table and choose the scope's export: a CSV
(Tektronix, Keysight, Rigol or a time/value table), an LTspice or ngspice .raw, a MAT-file or a sigrok .sr session.
Name the column of each of the case's signals (CH1, CH2, … to start with; leave one blank if the scope did not record
it). Time 0 is the case's switch-on, so a load step happens at the same time as in the simulation. Check Against
Limits reads every limit off the measured traces with the same readings the simulation uses (testbench.measure) and
draws the measurement dashed over the simulated run; the table's Bench column gives its value and the difference.
A column the file does not have is named in the panel, with the columns it does have.
Export
Export CSV writes one row per limit of every case with its latest run. Copy JSON puts the cases and every run (without the waveforms) on the clipboard.
Make the test report
The test report puts every case and the analyses that apply into one document you can hand over: run it when you are done, or whenever someone asks how the design stands.
Choose Simulation > Test Bench > Run All and Report, or press Make Report in the Test Bench. Every case whose latest run is not of the circuit as it is now runs again; the others are reused. Then Voltecx measures the loop gain of each control loop, the efficiency over the load with its loss breakdown, the junction temperatures, the stress on every part against its rating, and the conducted EMI when the circuit has a LISN or an input filter. When Run All Cases ends, the window offers the report on its own.
- Make Report runs the cases again where needed and makes the report.
- Save Report writes it as one HTML page.
- Copy for AI puts it on the clipboard with a request to explain it.
- Open in Claude opens a new conversation with the report.
- Open in ChatGPT does the same in ChatGPT.
The report has:
- a cover with the circuit, the spec, the date, the Voltecx version and the verdict;
- a summary with one row per case and per analysis, and a filter that shows only what does not pass;
- what failed, each with the measured value, what is required and the next step to try;
- one section per case: its readings and the plot of its signals with the limits drawn as in the Test Bench;
- the Bode plot of each loop with the crossover marked, and the phase and gain margins;
- efficiency against load, the loss of each part, the junction temperatures and the stress table;
- the schematic, the open items (steps no simulation shows, analyses that do not apply) and every setting used.
The same circuit and settings give the same numbers; only the date changes.
Save Report writes the report as one HTML page that needs nothing else: open it in any browser, drag across a
plot to zoom in, double-click to zoom out and hover to read the values. It follows the light or dark setting of the
computer, and the browser's Print saves it as a PDF. A Markdown copy (.md) is saved beside it for AI tools.
Not sure how to read it? Copy for AI puts the report on the clipboard with the request "Explain this power-electronics test report and tell me what to fix", ready to paste into any AI assistant. Open in Claude and Open in ChatGPT open a new chat with it filled in; a long report is cut in the link, and the whole report is on the clipboard to paste after it. The page itself has the same three buttons. In the AI assistant panel, ask "make a test report": the assistant runs the same command, and the report shows here.
The commands
Every button is a command, so a script, the CLI or an AI assistant can do the same:
| Command | Does |
|---|---|
testbench.list {spec} |
Lists the cases and their limits; without spec, from the spec stored with the circuit (specFrom says which) |
spec.set {spec} |
Stores the spec with the circuit (saved in the file); testbench.list {} then lists from it. design.auto stores its own |
testbench.run {case} |
Runs one case id, all or failed; returns a run id and each limit's measured value and verdict |
testbench.results {run, case, points} |
Every run, or one run with its waveforms |
testbench.compare {a, b} |
Two runs side by side |
testbench.measure {case, csv, map} |
Reads a bench measurement (scope CSV, or bytes of a .raw, MAT-file or sigrok session) against one case's limits with the same readings, and keeps it as a run with source: "measured" next to the simulated ones, so testbench.compare and the export show simulation, measurement and limit side by side |
testbench.export {path, format} |
The cases and results as CSV or JSON |
testbench.report {path, format, lang, spec, include, rerun} |
Runs every case (or reuses fresh runs) and the analyses, and writes the test report as one PDF or HTML page with a Markdown twin; without path the reply holds the page |



