Skip to main content

Measurements & Derived Signals

CircuitPro gives you two ways to extract standard parameters and build new signals from math operations on existing ones:

  • Sim Config – set these up before running the simulation. Measurements are computed as part of the simulation run and printed to the Console; derived signals are added to your plot/print list alongside the signals you selected directly.
  • Waveform Editor – set these up after running the simulation, working directly from the already-simulated .raw data. No re-simulation needed.

Both methods are fully supported — use whichever fits your workflow. If you already know what you want to measure or derive, Sim Config keeps it attached to the run and logged in the Console every time. If you're exploring a result you've just plotted, the Waveform Editor lets you add measurements and derived traces on the fly.

Method 1: Sim Config (Before Running)​

Open the Sim Config tab. Below the Signals to Plot section, you'll find Derived signals and Measurements.

Derived Signals (Sim Config)​

Use this to build a new signal from a math operation on an existing one, without leaving the Sim Config setup.

  1. Under f(x) Derived signals, choose an operation from the first dropdown (e.g. ln — natural log).
  2. Choose the base signal from select a signal to add….
  3. The derived signal is added as a chip below (e.g. ln(v(output_0))). Click the × to remove it.

Sim Config Derived signals section with the signal dropdown open

Because this is configured before running, the derived signal is included the next time you run the simulation — it behaves like any other signal in your plot/print list.

Measurements (Sim Config)​

Use this to extract a single scalar value — equivalent to an ngspice .meas statement.

  1. Under Measurements, select a measurement type from the dropdown (e.g. RMS).
  2. Choose the signal to measure from select a signal to add….
  3. Optionally set from / to to restrict the measurement to a time window. Leave blank to measure across the full simulation.
  4. The measurement is added as a chip below (e.g. RMS v(output_0), MAX v(wire_4)). Click the × to remove it.
  5. Run the simulation. Each measurement's result is printed as a scalar to the Console tab — it is not plotted as a waveform.

Sim Config panel showing the Derived signals and Measurements sections

Available measurement types:

MeasurementDescription
MaximumThe highest value the signal reaches over the measured time window.
MinimumThe lowest value the signal reaches over the measured time window.
Peak-to-peakThe difference between the signal's maximum and minimum values (Max − Min).
AverageThe time-weighted mean value of the signal over the measured window.
RMSThe root-mean-square value of the signal over the measured window.
Integral (J)The area under the signal's curve over the measured window (∫ signal dt).
Time at maxThe simulation time at which the signal reaches its maximum value.
Time at minThe simulation time at which the signal reaches its minimum value.
When (crossing time)The time at which the signal first crosses a specified value.
Delay (TRIG + TARG)The time difference between a trigger event on one signal and a target event on another.
Find (value at point)The value of the signal at a specific, given simulation time.

You can add multiple measurement types on the same signal (e.g. both MAX v(output_0) and RMS v(output_0)) to compare several characteristics in one run.

Method 2: Waveform Editor (After Running)​

Once a simulation has completed, the Waveform Editor lets you extract standard parameters and build derived signals directly from the plotted .raw data — without needing to re-run the simulation.

Measurements Panel​

Click Measurements in the top toolbar to open the Measurements dialog for the currently plotted signal.

Measurements panel showing AC parameters for vdb(output_0)

Selecting a signal​

Use the Signal dropdown at the top of the dialog to choose which plotted trace the measurements should be computed from (e.g. vdb(output_0)).

Parameters depend on the analysis type​

The set of measurements shown depends on which analysis type was run (see Analysis Types & Directives) — for example, AC Analysis surfaces frequency-domain parameters, while Transient Analysis would instead surface time-domain parameters relevant to that signal.

As an example, for an AC Analysis run on vdb(output_0), the panel shows:

  • Low-freq gain (dB) — gain at the lowest swept frequency
  • Peak gain (dB) — maximum gain across the sweep
  • −3 dB bandwidth — frequency where gain drops 3 dB below the low-frequency gain
  • Unity-gain freq — frequency where gain crosses 0 dB (— if it never does)
  • Gain·BW product (GBW) — low-frequency gain × bandwidth
  • Phase margin — phase remaining at the unity-gain frequency relative to −180°
  • Gain margin — gain margin at the frequency where phase crosses −180°
  • Group delay (avg) — average rate of phase change with frequency

Fields show — whenever the underlying condition isn't met by the simulated data (e.g. no unity-gain crossing).

These measurements update automatically whenever you select a different signal from the dropdown, and reflect data from the last simulation run only.

Derived Signals​

Use + Add signal in the top toolbar to combine or transform existing signals into a new plotted trace, without needing to re-run the simulation or modify your netlist.

Steps to add a derived signal​

  1. Click + Add signal
  2. Under Signals in this run, check the base signal(s) you want to build from (e.g. v(output_0))
  3. Under Derived Signal, choose an operation from the first dropdown
  4. Choose the signal the operation applies to in the second dropdown
  5. Click + Add derived

The new derived trace appears on the plot alongside your original signals, and can also be selected inside the Measurements dialog like any other signal.

Measurements panel showing AC parameters for vdb(output_0)

Available operations​

  • d/dx — derivative
  • ∫ — running integral
  • ravg — running average
  • vecd — Δ element difference
  • abs — |y|
  • √y
  • y²
  • norm — y / max|y|
  • ln(y)
  • log10(y)
  • eʸ
  • 10ʸ
  • dB10 — 10·log₁₀|y|
  • dB20 — 20·log₁₀|y|
  • floor(y)
  • ceil(y)
  • sin(y), cos(y), tan(y), atan(y)
  • sinh(y), cosh(y), tanh(y) — soft limiter
  • atanh(y)
  • mag — |y| (AC)
  • phase° (AC)
  • unwrap — continuous phase° (AC)
  • real part (AC)
  • imag part (AC)

The AC-only operations (mag, phase°, unwrap, real part, imag part) only apply to complex-valued signals from an AC Analysis run.

Derived signals are computed client-side from the existing .raw simulation data — they don't require modifying your SPICE directives or re-simulating.

Which Method Should I Use?​

Sim ConfigWaveform Editor
When configuredBefore runningAfter running
Where results appearConsole (measurements) / plot (derived signals)Measurements dialog / plot
Re-run required to change?Yes, edits take effect on next runNo, updates instantly from existing data
Best forRepeated runs where you know what you want tracked every timeAd hoc exploration of a result you've already simulated