Skip to content

embeddyn Lab: the interactive GUI

The Lab is a browser GUI for building and running mechatronic co-simulations, using the same project files as the CLI. Its parts come from four places:

Inspiration What the Lab takes from it
Proteus (schematic capture + virtual instruments) parts with pins, wires, scopes, meters and logic analysers wired onto the schematic
Fritzing (breadboard view) ngspice circuits drawn as prototypes on a solderless breadboard, with parts, jumpers and supply modules
Webots (robot simulator) a 3-D view of the mechanism that moves with the simulation
velxio-style emulators a parts library, run/stop toolbar and live controls next to real firmware emulation
embeddyn the co-simulation engine underneath (Renode, ngspice, Webots, FMU, python plants, replay)

No code is taken from these tools; velxio is AGPL. The Lab is plain HTML and JavaScript with no build step and no CDN, served by Python's standard library. It needs nothing beyond embeddyn's own dependencies.

embeddyn lab examples/mechatronics/rc-servo-lab.yaml --open
# = embeddyn mechatronics gui [project.yaml] [--port 8710] [--host 127.0.0.1]
# another --host needs --allow-remote and an access token (see the deployment guide)

To use Renode parts, start the Lab with RENODE_BIN set (see RENODE.md), or tick mock hardware to replace firmware, electrical and mechanical backends with the built-in mocks.

Screen layout

┌ ◈ embeddyn Lab · WORKSPACE │ New · Open ▾ · Save · Save as · YAML · Check │ ▶ Run ❚❚ ■ · mock · real-time × │ t · status ┐
├──┬─ parts library ┬─ Schematic │ Breadboard │ Scan │ 3-D view │ Split ──┬ inspector ─────────────────┤
│◫ │ Dev boards     │                                                      │ project / part / wire      │
│∿ │ My parts       │   parts with pins, wires, live values on the pins    │ parameters, options,       │
│⌁ │ Electrical     │                                                      │ pins, transforms           │
│▣ │ Mechanical …   │                                                      │                            │
│▷ ├────────────────┴──────────────────────────────────────────────────────┴────────────────────────────┤
│☰ │ Instruments │ Console │ Metrics │ Analyzer       ⟲ replay ───── time cursor ───── follow · CSV       │
│+│ [scope] [multimeter] [logic analyser] [gauge] [LED] [slider] [switch] …                              │
│≣ │                                                                                                      │
├──┴──────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ workspace · run state · t                       ● renode ● openocd ● gdb … · catalog 500 · data folder   │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────┘

The activity bar on the left switches workspaces (Alt+1 … Alt+9, Alt+0); the status bar shows the run, the tools the Emulation workspace finds, the component catalog and the Studio data folder. The theme is dark, flat and dense (12 px text, monospace for values, one amber accent for focus and selection), for long sessions at a workstation.

Workspaces

Workspace What it does
Design the schematic editor, breadboard, scan and 3-D views, inspector, instruments and analyzer (everything below)
Monitor telemetry of an emulation session as a time plot, scope, bar plot, histogram, spectrum or logic view; live filter expression and filter pipeline; test injection
RF / EMC microstrip patch seed from the stack-up, openEMS model export, Touchstone S11 / Smith chart / VSWR / bandwidth, tuning loop, FFT of waveforms or session channels with harmonic ladder and limit masks; noise-source hints from the open project
Firmware RE ELF, Intel HEX, UF2 and raw images: summary, findings, sections, symbols, strings, disassembly, hex
Emulation toolchain state; start and stop Renode, OpenOCD or native sessions with stored firmware, platform and script assets
Catalog the 500-component catalog (displays, sensors, actuators; bus, tier, Renode class), library import; double-click a component to build a part from it
Builder the component builder (below)
Pins the pin configurator (externals/pin_configurator): pin assignment, devicetree and prj.conf, clocks, peripherals, exports (below)
Logs session logs filtered by session, level, source and text; CSV export
Settings Studio data folder, toolchain, downloads (Renode component models, catalog), keyboard

These were the Local Studio's pages (embeddyn.local). The Lab serves their API itself under /api/studio/... (gui/studio.py, same services and storage: LocalStore, FirmwareAnalyzer, EmulationManager, TelemetryHub, embeddyn.rf), so no web framework is needed; the Studio starts on the first request. embeddyn lab, run.sh, the installed embeddyn-lab, the desktop app, the service and the container all run the Lab (deployment guide); embeddyn studio run still opens it too.

Component builder

Make a reusable part without writing a model by hand:

  1. Start from a template (linear sensor, first-order lag, integrator with limits, DC motor, heated body), from a catalog component (double-click it in Catalog: its bus gives the interface pins), or from New.
  2. Give it input and output pins with units, parameters, states with their derivative (d/dt = (u - x) / tau) and an equation for each output. Expressions are arithmetic over the pins, parameters, states and t with sin cos tan atan2 sqrt exp log abs min max clamp sign step and a if cond else b; anything else is refused.
  3. Test (Ctrl+Enter) runs the part alone with the inputs held (RK4) and plots its outputs; the symbol preview shows it as the schematic will.
  4. Save part (Ctrl+S) writes <id>.json (the spec) and <id>.py (a plant class) to the parts folder ($EMBEDDYN_PARTS_DIR, else parts/ in the Studio data folder). The part appears at once under its category (default My parts) and simulates with the python backend like the built-in plants.

Parts can be exported and imported as their .json spec.

Use Windows in the Lab toolbar to open Schematic, 3-D model, or Analysis in a separate browser window. You can move and resize each window independently. The schematic window includes the parts library and inspector. The analysis window includes instruments, console, metrics, and the analyzer.

The windows share the open project, live simulation, and time cursor. Use the main Lab window to start or stop a run. The Lab session stays open when you close a separate window. Closing the main window closes its separate windows. If the browser blocks a window, allow pop-ups for the Lab address.

Pins workspace

The pin configurator (the externals/pin_configurator submodule, a Flask application of its own) assigns pins with conflict checks and generates the devicetree overlay, prj.conf, clock trees, peripheral and Kconfig settings and Zephyr / Arduino / PlatformIO projects. The Lab runs it as a child process (gui/pins.py): Start picks a free localhost port, runs its run.py, waits until /api/boards answers and shows it in the workspace's frame (⧉ Window opens it in a browser window of its own). It stops with Stop or with the Lab. Its page calls absolute /api/... paths, so it is framed rather than proxied.

Below them, Firmware project: emulation setup runs the setup builder (emusetup.py, also python -m embeddyn.mechatronics.devboards setup) for a firmware folder: Renode debug scripts, VS Code tasks and the cortex-debug launch, and lab.yaml, which Open lab.yaml opens here (tutorial 13).

The side panel lists the configurator's board packages that fit the dev boards of the open project, best first: the package letter of an STM32 part number picks the pin count (STM32L476RG: stm32l476_lqfp64); click one to copy its name for the configurator's board list. It also shows where the configurator was found, the Python that runs it, missing modules and the process output.

Setting Default
PIN_CONFIGURATOR_HOME externals/pin_configurator of this checkout (git submodule update --init externals/pin_configurator)
PIN_CONFIGURATOR_PYTHON the Lab's own Python, which then needs the pins extra: pip install -e '.[pins]' (Flask, Werkzeug, pdfplumber, requests, PyYAML; part of the studio, full and dev bootstrap profiles)

API: GET /api/pins[?refresh=1] (status; refresh checks the modules again), POST /api/pins/start, POST /api/pins/stop, POST /api/pins/match {"parts": [...]}.

Wokwi projects

Open ▾ ▸ Wokwi project imports a Wokwi project and exports a Lab project back (gui/wokwi.py, API POST /api/wokwi/import and /api/wokwi/export).

  • Import: give the project's folder (or its diagram.json) on this computer, or upload diagram.json and wokwi.toml from the browser. The Lab traces the diagram's nets: a resistor passes a logic level through, a push button joins its sides when pressed. Then it builds:
Wokwi Lab
wokwi-arduino-uno, -nano, -mega the Arduino Uno R3, Nano, Mega 2560 dev boards (AVR core in Renode)
wokwi-pi-pico, board-pi-pico-w Raspberry Pi Pico (a Pico W runs without radio)
wokwi-esp32-devkit-v1, board-esp32-devkit-c-v4 the classic ESP32 board (T-Beam; merged flash image)
an LED between a board pin and GND (or from the supply: active low) an LED instrument on a GPIO output binding
a push button or slide switch between a board pin and GND (pull-up) or the supply a switch on a GPIO input binding

The firmware named in wokwi.toml becomes the board's firmware: elf if it is there, else firmware. An Intel HEX for an AVR board is converted to an ELF in .embeddyn/wokwi/. Everything else, such as resistors, sensors and displays without a Lab model, is kept with the whole diagram in metadata.wokwi. The Console lists what was mapped, kept and doubtful. The project is new and unsaved: Save writes it as .yaml in the Wokwi folder. - Export: Export… writes diagram.json and wokwi.toml into a folder; Download gives diagram.json. The export starts from the imported diagram, so kept parts and wires come back unchanged. It then moves parts to their Lab positions, leaves out parts deleted in the Lab, and adds boards, LEDs and switches built in the Lab that are wired to a board's GPIO bindings. A board's own LEDs and buttons belong to the Wokwi board and are not added twice. wokwi.toml keeps the imported settings (paths moved to the export folder) until the board gets another firmware.

Building a system

Dev boards (first in the parts library) are whole development boards: dropping one adds the board running a demo, plus an LED instrument per LED, a push button per user button and a serial monitor on its console, all wired. Set your own firmware in the inspector's Firmware field. See Dev boards in the Lab.

  • Add a part: drag it from the library onto the schematic, or double-click it.
  • Create a component: click + Component… in the parts library. Give the symbol a name and add its input and output pins with optional units. Select the symbol and use Edit component… in the inspector to change it later. Custom components and their dashed schematic wires are saved in the project as drawing metadata.
  • Wire: drag from an output pin (right side) to an input pin (left side). One driver per input; a new wire replaces the old one. Depending on the input, a wire is one of three kinds:
  • net (green): a python or FMU input reads the signal directly (options.inputs).
  • coupling (blue): the input has its own signal, such as a Renode ADC binding. The wire becomes a couplings: entry. Select it to set gain, offset, clamp, dead band, quantisation or a delay in steps.
  • probe (orange, dashed): an instrument or 3-D body observes a signal. Probes never change the simulation. An instrument can also pick any signal from the inspector, even one no part exposes as a pin.
  • bus (thick brown): an event connection through a bus node (see below).

A wire between pins of different units is drawn red and dashed. Check names the conversion when it knows one (rad → deg: gain 57.2958); put a coupling with that gain between them. * Edit a part: the inspector shows python plant parameters, with defaults as placeholders, and every backend option as YAML. Apply options re-derives the pins; for example, set bindings: on a Renode MCU and its ADC, GPIO, PWM and memory bindings appear as pins. * Delete: select a part or wire, then press Delete, or use the button in the inspector. * Buses: boards that exchange frames (CAN, BLE, Wi-Fi, UART, I2C, SPI, RS-485, Ethernet…) have square ⇄ event pins, labelled with their topic. Each topic is a bus node (═, brown): publishers' event outputs wire to its from boards pin, and its to boards pin wires to the subscribers' event inputs. Under the hood these wires are the boards' events: / subscribe: options; a Renode MCU's CAN bridge shows can:tx / can:rx. * Connect: wire an event pin to a bus, or straight to another board's event pin (they share the publisher's topic). * Disconnect: delete the wire, or delete the bus to take every board off it. * Add: drag Bus / radio channel from Buses. It starts as bus1, bus2… A bus with no boards yet is kept in metadata.gui.buses. * Inspect and edit: select a bus to see its publishers and subscribers. There you can: * rename its topic: the boards, its medium and the analyzer's topic follow; * pick its protocol when the topic name does not say it (stored as media.<topic>.protocol; cable checks and faults follow it); * set a bit error rate, a loss and faults (the same presets as the analyzer's Medium panel), or clean the medium; * click Decode in the analyzer to add its topic to metadata.analyzer.topics. * Watch: during a run every bus node counts its traffic: frames, frames per second (over the last 0.1 s of simulated time), frames the medium lost, error frames and impaired frames (⚡). The count turns red when frames are lost (GET /api/buses?session=…). Boards from the library join their usual topic as they are dropped: an I2C master and a TMP102 land on the i2c bus together, CANopen nodes on can.tx / can with the CAN bus model. * Check also reviews the wiring: * outputs that write the same signal (an error); * inputs that read a signal nothing writes (they stay at its initial value); * unit mismatches, with the conversion; * buses with publishers but no subscribers, or the other way round; * event pins on no bus. * Pan / zoom / fit: drag the background, use the mouse wheel, press F or click Fit.

Library category Parts
Controllers STM32L476 servo firmware (Renode), Renode MCU (generic), PI controller, servo pulse generator
Electrical DC motor armature, SPICE circuit (ngspice-shared)
Mechanical RC servo, geared drivetrain, MuJoCo model (pins from the MJCF), Webots world, FMU
Thermal winding thermal RC
Buses bus / radio channel, CAN bus (arbitration), CAN restbus
Wired boards CANopen master, axis and sensor nodes; I2C master + TMP102; SPI master + LIS3DH; GPS → NMEA reader (UART); Modbus RTU master and slave (RS-485); Ethernet PLC and remote I/O (Modbus/TCP)
Radio boards CANopen → BLE gateway, BLE → Wi-Fi bridge, open and WPA2 access points, WPA2 station, deauther, BLE beacon / sensor / phone, NFC reader and NTAG213, EM4100 card, UHF Gen2 reader and tags, LoRaWAN node and gateway
Sources function generator (sine, square, triangle, sawtooth, step, ramp, pulse, DC), CSV replay, slider, switch
Instruments oscilloscope, multimeter, logic analyser, X-Y plotter, gauge, LED, watch table, serial monitor (Renode UART console with a send box)
3-D bodies servo + arm, motor shaft, pendulum, wheeled cart, linear slide, lamp, bar

The function generator runs inside the simulation as a python plant (embeddyn.mechatronics.gui.sources:FunctionGenerator), so it is exact at every step and a saved project behaves the same from the CLI.

Running and measuring

  • ▶ Run (F5) checks the project and starts it in a background thread on the server. Rows stream to the browser while it runs. Instruments, pin values and the 3-D view update live. ❚❚ pauses, ■ stops. Simulators are shut down cleanly, Renode included.
  • real-time × paces the run to the wall clock times the factor; untick it to run as fast as possible. Renode-in-the-loop usually runs slower than real time.
  • Live controls: a slider or switch from Sources drives its signal. Moving it during a run applies at the next macro step (CoSimulationOrchestrator.forced). Its value is saved as the signal's initial value.
  • Instruments:
  • oscilloscope: four channels, roll or sweep, 1 ms…60 s or the whole run, stacked or overlaid, auto-scaled with min/max decimation;
  • multimeter: value, mean, RMS, min, max or peak-to-peak over a window;
  • logic analyser: eight channels with a threshold, plus frequency and duty of each channel;
  • also an X-Y plotter, gauge, LED and watch table.
  • After a run: drag the time cursor, or press ⟲ replay, to scrub or replay the recording. Every instrument and the 3-D view follow the cursor. CSV downloads the run. Metrics shows the project's metrics: results.
  • Analyzer (dock tab): decoded CAN/CANopen, BLE and 802.11 traffic of the run, with protocol toggles, a filter, one lane per sender, a field tree with a linked hex dump, and pcap export. Clicking a packet moves the time cursor there. Its Changes view shows one row per message with the changed bytes highlighted, bit flip counts, and any byte range read as an integer and plotted, for reverse engineering. It can also find the bytes that follow a signal, name them into the decoder, export a DBC, open real captures (pcap, pcapng, candump) and send or replay frames into the run. It decodes CAN/CANopen, BLE, Wi-Fi, NFC, RFID (EM4100, EPC Gen2) and LoRaWAN, and its ⚡ Medium panel adds noise, loss, fading, interference and crosstalk to any bus or radio, live. See Multi-board buses, radios and the analyzer.
  • 3-D view: drag to orbit, shift- or right-drag to pan, wheel to zoom, double-click to re-frame. Angles follow the signal unit (deg or rad) unless the body's unit is set.

Breadboard view

The Breadboard tab draws every ngspice circuit of the project the way it would sit on a solderless breadboard, in the manner of Fritzing:

  • resistors carry colour bands, from their value or from the .param / {{signal}} they refer to;
  • ceramic and electrolytic capacitors, inductors, diodes and LEDs (IR LEDs glow violet) are drawn as such;
  • transistors are TO-92 packages, power MOSFETs TO-220, with their legs in the real part's order, so a part plugged in as drawn is wired as simulated:
  • E-B-C for 2N3904, 2N3906 and 2N2222A, but C-B-E for BC547 and BC557;
  • S-G-D for the 2N7000, D-G-S for BS170 and BS250;
  • G-D-S for TO-220 MOSFETs;
  • D-S-G for JFETs.

Leg order is left to right with the flat or labelled face toward you; the part's tooltip repeats it. * LEDs show their flat (cathode) rim and a + on the anode side; * switches, dependent sources and subcircuits are DIP chips across the trench; * behavioural B sources are small ƒ chips; * zero-volt sense sources are yellow ammeters.

Sources sit beside the board as modules: a bench supply, a function generator (PULSE, SIN and the like), an MCU pin for an external source fed by a firmware-domain instance, or a signal input for any other instance. Jumper wires run from the modules to the board: red for the supply rail, black for ground, other colours by net.

┌ toolbar: circuit ▾ · + Part ▾ · ↶ · Auto-layout · Netlist… · Save layout · Export .cir · ✓ matches netlist ┐
│ [Bench supply 5 V]──red──┐   ┌──────────── breadboard (rails, a–e │ trench │ f–j) ─────────────────┐  │
│ [MCU pin · gpio ]──────┐ └──▶│  Rled ▭▭▭  D1 ◉ IR   Q2 ◗ PT   Q1 ◗ NPN   Bcmp ƒ   Rout ▭▭▭  Cout ◍  │  │
│ [Current input  ]────┐ └────▶│  Vsled [A 23.7 mA]        ⚑ V(rx) = 126 mV    ⚑ V(rx_out) = 3.3 V │  │
└──────────────────────┴───────┴────────────────────────────────────────────────────────────────────┴──┘

Connectivity follows the real board. The five holes of a column half (a–e or f–j) form one strip, each power rail is one conductor, and a jumper joins its two ends. Hover a hole, leg or wire to see its net, with every hole on that net lit up. The status line and the inspector compare the board with the netlist:

  • open: a netlist net is split into unconnected pieces;
  • short: one piece joins different nets;
  • unplaced: a leg is in no hole.

Editing:

  • drag a part to move all its legs, or drag a leg end to bend it to another hole;
  • drag from a free hole or a module terminal to draw a jumper;
  • select a part to edit its value or model and see its pins, nets and SPICE card;
  • Del removes a part or wire, R swaps a part's legs, Ctrl+Z undoes, F fits.
  • + Part adds resistors, capacitors, LEDs (red, 940 nm IR), photodiodes, 1N4148, 2N3904/2N3906, a phototransistor, MOSFETs, a bench supply, a function generator and an ammeter. Each added part brings its .model card.

Live values: after or during a run, the bound vectors show on the board:

  • V(node) as a flag on the net;
  • i(Vsense) on its ammeter;
  • input sources on their module's display;
  • an LED lights with the current of the ammeter in series with it.

Flags name the instances that read the signal (→ beam). They follow the time cursor and replay like the instruments.

Files:

  • Save layout (and the project's Save) writes <netlist>.breadboard.yaml next to the netlist. Without one, the board is laid out automatically in signal-flow order, starting from the nets the modules drive.
  • Netlist… shows the netlist the board makes.
  • Export .cir writes it out. Element cards get the board's nets and values. Removed parts stay as comments, and added parts and their model cards go before .end. Every other line (.param, .model, comments, {{placeholders}}) is kept.

Overview: the modules show where each circuit input comes from (for example strobe firmware → electrical.gpio on an MCU pin). The probe flags show which instances read each output, so one board shows the whole electrical side of the co-simulation.

Scan view

The Scan tab reads a printed schematic into a netlist: a PDF (exported from an EDA tool, or scanned) or pictures (PNG, JPEG, TIFF ...). Drop the files on the tab, choose them, or type their paths (several files are the pages of one design). The scan runs the schematic scanner on the Lab server and writes schematic.net, scan.json and an overlay per page into .embeddyn/scans/NAME in the project folder (or the out folder).

  • The page shows the overlay: each net in its own colour, parts boxed with their reference, pins as dots (red: number guessed). Wheel zooms, drag pans, double-click fits.
  • Parts and Nets list what was read. Clicking a part zooms to it and marks its pins; clicking a net marks every pin on it, on its page.
  • reference scores the scan against a known KiCad netlist (precision and recall of pin connections, identical nets, matching values).
  • Import as an emulated board runs the board importer on the scanned netlist: Renode board, bindings and a project in <scan folder>/board, then opens the project. substitute (REF=PART) emulates a part as another library part, or names the MCU when its value was not read. firmware sets an ELF/HEX/BIN for the board to run.

A vector PDF scans in seconds. A picture takes a minute or more because of OCR, and dense black-and-white pictures are not reliable yet: check the overlay before importing.

Board photos (the mode menu at the left of the tab's toolbar) reads a real board instead of a drawing: give the top photo, optionally the bottom photo, close-ups for the markings and the board size in mm (chosen files fill the fields in that order). Reading takes one to a few minutes. The pages are the straightened top and bottom with each net's copper in colour, and a draft net-label schematic. Clicking a part shows its package (and the alternatives), body size, marking and how it decodes; typing the marking and Apply decodes it, numbers its pins from the marking's direction and rewrites the netlist. The SMD decoder box decodes any marking (472, A7 + SOT-23, 74HC595D) or finds the package for a body size. See Reverse engineer a board from photos.

Files

Saving writes an ordinary project file. Simulator instances, signals and couplings go where the CLI expects them. Sections the Lab does not edit (metrics, verification, scheduler, parameters, components) are kept verbatim. The layout, sources, instruments and 3-D bodies are stored under metadata.gui, which the CLI ignores. Save as into another folder rewrites relative model, script, firmware, bindings and log paths so they still resolve.

Projects without metadata.gui open with an automatic layout in columns: sources | firmware | electrical | mechanical | observers. A coupling whose signal no part exposes gets a net-label terminal.

Architecture

Piece Role
gui/document.py project file ↔ schematic graph; pins from plants, replay columns or binding files (Renode, Webots, ngspice)
gui/parts.py parts library and instantiate_part
gui/sources.py FunctionGenerator, ServoPulseGenerator plants
gui/session.py RunSession: thread around CoSimulationOrchestrator.iterate(); pause, stop, real-time pacing, forced signals, metrics, CSV
gui/server.py ThreadingHTTPServer; JSON API under /api, Server-Sent Events at /api/stream
gui/studio.py the Studio workspaces' API under /api/studio (catalog, assets, firmware, RF, sessions, telemetry, logs)
gui/builder.py component builder: spec checks, expression whitelist, plant code generation, test run, parts folder
devboards.py the bench's development boards as one-piece parts: board file, LEDs, buttons, console, demo firmware
gui/pcbview.py Scan view, board-photo mode: read a board from photos, markings typed in by hand, SMD decoder
gui/scanview.py Scan view: schematic scan of uploaded or local files, pin and part positions for the overlay, import as a board
gui/breadboard.py SPICE netlist parser, part types and palette, automatic breadboard layout, connectivity check, netlist export, .breadboard.yaml sidecars
gui/static/ studio.js (workspaces, activity and status bars, Studio pages), builder.js (component builder), studio.css; app.js (Design shell), schematic.js (SVG editor), breadboard.js (breadboard view), scan.js (scan view), ops.js (edit operations), inspector.js, instruments.js, analyzer.js (protocol analyzer) with bytediff.js (changes view), scene3d.js (flat-shaded canvas renderer)

Two core changes support the Lab:

  • CoSimulationOrchestrator.iterate() yields one row per macro step, and run() now uses it.
  • MechatronicProject.from_mapping() builds a project from a parsed document.

Security: the API opens and writes project files and launches simulators, so the server binds to 127.0.0.1 by default. It also refuses cross-origin POSTs and DELETEs, only writes .yaml project files, and writes built parts only to the parts folder. Do not expose it on a network.

Example: rc-servo-lab.yaml

This example runs without firmware. A square-wave angle command (±45°, 0.5 Hz) feeds a software pulse generator, which drives the RC servo plant. A slider sets the arm load. The scope shows command, angle and current, with a current meter, an angle gauge and a 3-D servo alongside. Moving the load slider during a run makes the proportional servo droop. A load above the 0.48 N·m stall torque back-drives it.

The firmware-in-the-loop version is rc-servo-l476.yaml (RC_SERVO_L476.md). It opens in the Lab the same way, and running it there gives the same metrics as the CLI.

Tests

tests/mechatronics/test_gui.py covers:

  • every example round-trips through the graph;
  • pins derived from binding files;
  • every library part instantiates;
  • a graph built the way the GUI builds one runs and saves;
  • forced signals and iterate();
  • run-session pause, stop and real-time pacing;
  • function-generator waveforms;
  • the HTTP API: open, run, stream, CSV, save-as with path rebasing, cross-origin and path-traversal refusal, and pin re-derivation.

tests/mechatronics/test_breadboard.py covers the breadboard view:

  • netlist parsing: models, continuations, subcircuits, .control;
  • an automatic layout of every example netlist that matches it, with one lead per hole;
  • opens, shorts and unplaced legs;
  • export with changed, removed and added parts;
  • sidecar files and the breadboard API;
  • an ngspice run of ir-curtain-channel.yaml.