Skip to content

Multi-rate monitoring ​

When your circuit has subsystems running at different rates, an Oscilloscope or Plot can display traces from multiple rate groups on the same chart. The high-rate trace draws every sample; the low-rate trace draws its samples on the same x-axis with the gaps spanned by line segments — so the two render as "low-density line on top of high-density line".

What you see ​

Plot a slow v_dc from the outer loop and a fast i_switch from inside a Subsystem on the same chart:

  • The fast trace draws every sample of i_switch. You see the switching ripple.
  • The slow trace draws every sample of v_dc, connected with straight lines across the fast trace's intermediate samples. You see the slow envelope.
A fast trace draws every sample — here, switching ripple riding a rising envelope — while a slow trace from another rate group is drawn with sparse samples joined by straight segments. Both share one time axis.

Why this works ​

Rate groups in NumaSim are always integer-related (a Subsystem whose Iterations per outer step is N runs at exactly N times the parent rate, never something irrational), so any set of rate groups in a chart shares a common time grid. The chart uses that common grid as the shared x-axis whenever the participating rate groups don't already share a single one — most commonly when two sibling subsystems use coprime Ns (e.g. N=3 next to N=4).

For deeply nested or wildly coprime rate combinations the common grid can grow large; the chart falls back to the finest existing axis so the plot still renders, at the cost of a slight jitter on the coprime traces. If that happens, picking Iterations per outer step values that share a common divisor (e.g. N=4 and N=8 instead of N=7 and N=11) keeps the traces aligned.

Practical guidance ​

  • If you don't care about the fine ripple, plot only the slow trace. The charts thin out huge datasets automatically, keeping each pixel column's highest and lowest value.
  • If the slow trace looks blocky when you zoom in, that's its sampling cadence showing: each straight segment spans one slow step. Move it to its own sub-plot if it gets in the way of the fast trace.

See also ​