Build the Simulation

Back to the operator study

Build the Simulation / 09-10

Stanford Research Systems SR560

Modeled as a feet-down, line-powered SR560, described by Operating Manual revision 3.1. Both input and both output ports are modeled; the passive test fixture selects just one attached output path. The synthetic source and selectable termination belong to the training fixture, not to the instrument. Do not use with human subjects; this virtual bench never supplies, samples, or controls any hardware.

Source images and model comparison

Original front render with indicators and four coax connectors
Original front render: front-plane registration from the manufacturer’s straight-on SR560 photograph. It sets switch and LED rows, offset screw, four floating BNCs, and four main control regions. The fixture in front has no factory counterpart; the render illustrates both adapter assemblies, while the exercise uses one output path at a time.
Original rear render with black back plate and control connectors
Original rear render: rear terminal order, transformer enclosure, mains inlet, fuses, optional line/battery indicators, blanking BNC and serial port from the manufacturer’s exact rear photograph. Rear electrical connections are visual only.
Original 3/4 render of an SR560 and the passive fixture
Original three-quarter render: case profile, half-rack proportions, and feet compared with SR560 manufacturer catalog p. 1. Air slots, connector relief, labels, and motion distances without measured CAD are approximations.

Configuration and limits

PropertyRelevant specificationStudy useSource
DimensionsRev. 3.1 manual: 8⅛ × 3½ × 14⅞ in (W/H/D = 206.375×88.9×377.825 mm). Manufacturer web summary separately lists 8.3×3.5×13.0 in. No dimensioned survey resolves what points differ.Use the rev. 3.1 manual envelope, not an unsupported average. Geometry validation checks nominal fit only.Manual p. 5; product page
A/B inputDC-coupled 100 MΩ + 25 pF nominal; DC overload around 1 V peak and AC input limit 3 Vpp.Use high-impedance ideal source fixture, guard 1 V peak DC, 1.5 V peak AC, differential and channel peak for imported traces. GND internally grounds the amplifier path, not the front input connector.Manual pp. 5, 7–8
Gain and filtersCalibrated 1–50,000 gain in 1–2–5 sequence; filters 0.03 Hz to 1 MHz, two first-order RC stages with -3 dB corners.Fixed calibrated steps are modeled. HP cutoff max 10 kHz per front range; high cutoffs supported on LP; AC occupies one stage at 0.03 Hz.Manual pp. 8–9
Output and limit50 Ω or 600 Ω; matched load halves high-impedance gain. SRS states 10 Vpp into the respective rated load.Use ideal source divider, plus conservative 10 Vpp *unloaded* training-model guard. That guard deliberately does not extend simulated headroom to the supplier's rated matched-load capability. Persistent overload needs a changed stimulus/setting, not Reset.Manual p. 9; catalog
Noise/dynamic reserveManufacturer product figure: 4 nV/√Hz at 1 kHz under its stated conditions; gain allocation trades noise and pre-filter overload.Mode switch and indicators work visually. No realization of noise, finite CMRR/PSRR, internal overload split, saturation recovery, or source-Z interaction. Brownout/battery charge and RS-232 controls are not supported.Product page; Manual p. 9

What the numerical model does

The synthetic fixture applies the same 50 Hz component to both inputs and opposite half-amplitudes of a 1 kHz differential signal (20 mVpp A−B). In ideal differential mode the common signal cancels exactly; single-ended mode retains it. Gain is signed by Invert; an ideal load uses the divider Zload/(Zload+Zout). Filters are products of complex first-order stages: LP 1/(1+jf/fc), HP jf/fc/(1+jf/fc). Bypass has no selected RC filter; AC mode still reserves its 0.03 Hz stage. In AC HP2 practice, the selected HP and 0.03 Hz filters act in series; AC with independent band-pass or two LP poles is not offered. Generated samples use steady-state phasors. Imported samples use prewarped bilinear RC per stage, constant prehistory and the input sampling grid; cutoffs at or above one fifth of the sample rate are rejected.

Input accepts bts.analog-waveform.v1 JSON, one or two ordered volts contacts (A then B), 16–65,536 points in each, a common dtS of 0.5 µs to 1 ms, IDs and revision. A single channel will not simulate B/differential wiring. Equal canonical t0S and legacy startS values are accepted, conflicts invalid. JSON and CSV output contain the signed waveform; JSON contains provenance, units, selected physical output port, source IDs, sample interval, time origin and revision. To inspect the retained time origin example in the archived 09-04 scope solver, use 256 kS/s, 0.4 ms/div, 0.25 V/div, DC, 0.4 V rising trigger and 10× tip scaling. The two-origin export is intentionally compatible with the older scope importer; it does not change that importer.

Verification highlights

CaseExpectedVerifiedTolerance
Gain 100, 20 mVpp differential2 Vpp high Z2 Vpp1 nV in ideal sampled case
Termination matches output1 Vpp on either matching load1 Vpp (both)1 nV
One pole at 1 kHz cutoff0.7071068 amplitude; +45° for HP0.7071068 / +45°1e-12 amplitude, 1e-10°
Two coincident LP poles0.5 amplitude0.51e-12
Upper gain on calibration fixture×1000 rejected; ×500 yields 10 VppGuard + restored valid waveformExact code; 1 nV
Nonzero origin to scope2.0 s trace origin; revisions 4→5→6; no clipping2.0 s origin and revision chain; no clippingExact IDs/origin

Numerical checks · GLB rig validation · Browser tests · Emulated headset tests · Actual download replay · Waveform schema. These tests show geometric and numerical consistency for the modeled lesson, not measured calibration or actual headset performance. Manufacturer photos are not included or redistributed.