Loading tool…
Loading interactive tool…

Engineering reference

Theory, method, validation, and sources

The interactive workspace is paired with its published engineering context: core equations, assumptions, design boundaries, and source references. Worked examples, validation cases, and editorial review dates are displayed only where that supporting evidence has been published for the tool.

Calculations run locallyContent reviewed August 9, 2026Calculation & source methodology

How this tool works

The simulator is a focused browser-based block-diagram environment for control-system learning and preliminary design. Add source, controller, plant, nonlinear, and scope blocks; wire them together; then simulate the complete closed loop instead of evaluating each equation in isolation.

It is free to use, requires no account or installation, and performs its interactive calculations in the browser. That makes it suitable for quick coursework, demonstrations, and control experiments on a shared or temporary computer.

Phase 2 UX is complete with a viewport-responsive diagram canvas, anchored zoom, Space/middle-mouse panning, fit-to-diagram, box and multi-selection, grouped block dragging, searchable drag-and-drop blocks, direct port wiring and drag-to-rewire, selectable/deletable wires, snap-to-grid, alignment/distribution tools, copy/paste/duplicate, and undo/redo history.

Included templates cover continuous PID/PI tracking, disturbance rejection, transfer functions, state-space plants, delay/noise and rate limits, plus Phase 3 sampled-data examples with digital PID, zero-order hold, discrete G(z), difference equations, discrete state space, and one-sample computation delay. Every template remains fully editable.

Scopes can be assigned as Reference, Output, Error, Control effort, or Auxiliary. When Reference and Output scopes exist, the simulator automatically calculates rise time, peak time, overshoot, settling time, steady-state error, IAE, ISE, ITAE, and ITSE.

The selected continuous or discrete PID block can be adjusted with live tuning sliders, ±10% gain nudges, optional auto-run, one-click rerun, gain revert, or numerical optimization. The first tuning change can preserve the current response as a baseline. Results use a sticky tabbed dock for overview, response, control, error, auxiliary, and linear analysis; time-domain scopes support cursor readouts, drag-to-zoom, Ctrl+wheel zoom, and synchronized time-window reset. Continuous linear-compatible feedback diagrams also derive closed-loop poles, reference-to-output frequency response, open-loop Bode response, bandwidth, gain margin, and phase margin.

Engineering theory

Closed-loop behavior comes from the complete signal path

A controller cannot be judged from Kp, Ki, and Kd alone. The reference, summing junction, controller, actuator limits, plant dynamics, sensor path, disturbances, delays, and sample timing all shape the closed-loop response.

The block-diagram simulator therefore evaluates connected systems as one dynamic model and reports both tracking performance and controller effort where the necessary scopes are present.

Continuous and sampled-data models require different timing assumptions

Continuous states are propagated with fixed-step RK4. Digital blocks update only at configured sample instants and hold their outputs between updates, which makes sample time part of the control design rather than a UI setting.

The base step must be small enough to resolve the fastest dynamics and, for the current mixed solver, digital sample times must align with integer multiples of that base step.

Time-domain and linear frequency-domain analysis are complementary

Step response exposes rise time, overshoot, settling, steady-state error, integral error, and actuator demand. Bode response, poles, gain margin, and phase margin describe small-signal linear behavior around the modeled operating point.

When nonlinear, delay, noise, or sampled-data blocks make the continuous linear interpretation invalid, the simulator disables the corresponding classical analysis instead of presenting a misleading margin.

Inputs and outputs explained

Inputs

Block diagram

Connected sources, summing junctions, controllers, plants, nonlinearities, delays, sensors, and scopes define the simulated system.

Simulation durations

Total time window used for the time-domain run.

Base time steps

Fixed RK4 integration step and timing grid used by the mixed continuous/discrete solver.

Reduce the step when the result changes noticeably with step size or when fast dynamics are present.
Controller gains

Continuous or discrete PID/PI/P parameters, derivative filtering, saturation, and anti-windup settings.

Plant parameters

Transfer-function, state-space, first-order, second-order, or discrete model coefficients.

Sample times

Update period for digital controllers and discrete dynamic blocks.

Outputs

Time-domain traces

Reference, output, error, control effort, and auxiliary scope signals.

Response metrics

Rise time, peak time, overshoot, settling time, and steady-state error where reference/output scopes permit them.

Integral error metrics

IAE, ISE, ITAE, and ITSE for comparing tracking behavior over the selected run.

Linear analysis

Closed-loop poles, Bode response, bandwidth, gain margin, and phase margin for supported continuous linear diagrams.

PID comparison

Baseline-versus-current response metrics and traces for interactive tuning or numerical optimization.

Calculators and topics covered

  • control systems
  • simulation
  • block diagram
  • PID
  • digital control
  • sampled data
  • feedback
  • closed loop
  • transfer function
  • state space
  • RK4
  • free online control system simulator
  • browser based control system simulator
  • no account control system simulator

Core equations

continuous simulation: ẋ=f(x,u,t), integrated with fourth-order Runge–Kutta (RK4)first-order plant: τẏ + y = Kusecond-order plant: ÿ + 2ζωₙẏ + ωₙ²y = Kωₙ²uPID with filtered derivative: u=Kp e + Ki∫e dt + Kd N(e−xD), ẋD=N(e−xD)strictly proper transfer functions are converted to controllable companion-form state space before integrationstate-space plant: ẋ=Ax+Bu, y=Cx+Dudiscrete PID: controller updates at Ts and holds u[k] between sample instantszero-order hold: y(t)=u[k] for kTs≤t<(k+1)Tsunit delay: y[k]=u[k−1]discrete transfer function: a₀y[k]+a₁y[k−1]+…=b₀u[k]+b₁u[k−1]+…difference equation: y[k]=Σbᵢu[k−i]+Σcⱼy[k−j−1]discrete state space: x[k+1]=Ax[k]+Bu[k], y[k]=Cx[k]+Du[k]transport delay: y(t)=u(t−T), using fixed-step history interpolationfrequency response: H(jω)=C(jωI−A)⁻¹B+DIAE=∫|e|dt, ISE=∫e²dt, ITAE=∫t|e|dt, ITSE=∫te²dt

Worked examples

First-order unit-step response

Use a first-order plant with K = 1 and τ = 1 s, driven by a unit step without feedback nonlinearities.

Inputs
  • Plant: τẏ + y = u
  • K = 1
  • τ = 1 s
  • step input from 0 to 1
Method
  1. The analytic response is y(t) = 1 − e^(−t).
  2. At t = τ, substitute t = 1 s.
  3. Compare the simulator trace with the analytic 63.2% point.

Result: The expected output at t = 1 s is approximately 0.6321.

Interpretation: This is a useful sanity check for integration accuracy and for understanding the physical meaning of a first-order time constant.

Common mistakes

Using a time step that is too large

A fixed-step solver can miss fast dynamics or distort stability when the integration step is large relative to the fastest modeled time constant or sample period.

Better approach: Reduce the base step and confirm that the important metrics and traces converge rather than trusting one discretization.

Tuning a PID without actuator constraints

Aggressive gains can look acceptable in an unconstrained model but demand impossible control effort in the real system.

Better approach: Include saturation, rate limits, delay, sensor behavior, and realistic actuator authority before treating a tuning result as implementable.

Reading continuous Bode margins from a nonlinear or sampled loop

Classical continuous margins are not automatically meaningful when dead zones, rate limits, delays, noise models, or digital timing dominate the system.

Better approach: Use the time-domain sampled response for those cases and dedicated z-domain/nonlinear methods when required.

Method and assumptions

The runtime converts supported continuous dynamic blocks into state derivatives, evaluates the connected diagram, and advances continuous states with classical fourth-order Runge–Kutta. Discrete blocks update at their sample events and retain outputs between events.

Performance metrics are derived from the simulated reference/output/error signals after a run. Linear analysis is constructed only when the diagram can be represented as the supported continuous small-signal model; otherwise it is explicitly withheld.

Assumptions

  • Continuous dynamic blocks are simulated with a user-selected fixed base time step using RK4; digital blocks update only at their configured sample instants and hold outputs between updates.
  • General transfer-function blocks must be strictly proper in this release so feedback diagrams do not require an algebraic-loop solver.
  • Unconnected input ports evaluate to zero and are reported as warnings before simulation.
  • PID derivative action uses a first-order derivative filter rather than an ideal differentiator.
  • Automatic PID optimization is a local numerical search for the current diagram and test input; it is not a universal tuning guarantee.
  • Digital sample times must be integer multiples of the fixed base simulation step in this release so mixed continuous/discrete event timing is deterministic.
  • Linear analysis is a zero-operating-point continuous-time small-signal model. It is disabled when sampled-data blocks are present rather than presenting misleading continuous Bode margins for a digital loop.

Limitations and design boundaries

  • This release does not yet implement MIMO signal buses, variable-step/event solvers, automatic continuous-to-discrete model conversion, full z-domain closed-loop Bode/root-locus analysis, algebraic-loop solving, Monte Carlo uncertainty analysis, or hardware-in-the-loop execution.
  • The simulator is intended for education and preliminary controller design. Safety-critical or production controllers require independent plant validation, uncertainty analysis, actuator/sensor models, and appropriate engineering review.
  • Transport delay requires a delay at least as large as the fixed simulation time step. Rate limiting is integrated as a nonlinear state and may require a smaller time step around sharp command changes.
  • Classical continuous-time Bode and stability-margin analysis is disabled when dead-zone, rate-limiter, transport-delay, noise, or sampled-data blocks are present. Digital loops should be assessed from their sampled response until dedicated z-domain analysis is added.
  • Large stiff systems may require a much smaller fixed time step than ordinary examples and are better handled by a dedicated numerical simulation package.
  • Share links are intended for modest diagrams. Export JSON for larger or more complex projects.

Validation cases

These checks document how representative calculations are cross-checked against analytic or reference results.

Validation policy

First-order time-constant check

Analytic cross-check
Method
Compare the simulated K = 1, τ = 1 s unit-step response against y(t) = 1 − e^(−t).
Expected
y(1 s) = 1 − e⁻¹ ≈ 0.63212056.
Tolerance
The numerical result should converge toward the analytic value as the RK4 time step is reduced.

Zero-order hold behavior

Reference cross-check
Method
Drive a zero-order hold with a changing input and inspect the output between sample instants.
Expected
The output remains constant between updates and changes only at the configured sampling events.

Sources and references

Primary sources are preferred for ratings, standards, manufacturer data, and externally defined constants.

Source policy
  • Åström and Murray, Feedback SystemsFeedback architecture, dynamic systems, stability, performance, and controller design.
  • Franklin, Powell and Emami-Naeini, Feedback Control of Dynamic SystemsTime-domain response, PID design, state-space models, and implementation considerations.
  • Ogata, Modern Control EngineeringClassical feedback models, transient response, PID control, and state-space realization.
  • Butcher, Numerical Methods for Ordinary Differential EquationsRunge–Kutta integration methods used for continuous state propagation.

Related concepts