User Manual#

Paperboat is an interactive cockpit for engineering simulations, signal processing, control systems, and data pipelines. It pairs a high-performance C++ engine with a clean, responsive interface that adapts to whatever domain your backend provides.

The look and feel follows a clear design philosophy: flat mono, like a well-made instrument. Surfaces are grey panels with hairlines, input fields are recessed grey wells, output readouts sit in crisp black displays, and a single signal colour means “live” or “look here”.

This manual covers everything you need to navigate, build, run, and monitor systems in Paperboat.

Overview of the Workspace#

The workspace is organized around four core pages and an overarching control bar:

  1. Station: The setup and equipment page. It displays a 2D or 3D scene of the physical things being simulated or controlled (masses, motors, joints, cameras), along with their parameters and initial states.

  2. Flow: The procedure page. An intuitive canvas where computational and signal blocks are wired together into graphs.

  3. Board: The live operations deck (referred to as the Dashboard in technical specs). Instruments—such as real-time wave plots, numeric cards, and image feeds—show what the system is doing as it runs.

  4. Console: A streaming diagnostic log that records events, warnings, block-attributed messages, and run completion summaries.

┌──────────────────────────────────────────────────────────────────────────┐
│ ⛵ paperboat  File  Edit  View  Run            [ navigator ]  commander  ● engine │
├─────────┬────────────────────────────────────────────────────────────────┤
│   ⬡     │ Flow                                                 6 blocks  │
│ station │                                                                │
│ ┌  ⌥  ┐ │        ┌ PID ───── fn ┐     ┌ Sum ───── fn ┐                   │
│ │ flow│ │        │ kp      40   │ ─── │ a            │                   │
│ └     ┘ │                                                                │
│   ▦     │      ┌ ▶ Run  ■ Cancel  for ░10░ s ░1×░  running 3.2 / 10 s ┐    │
│  board  │                                                                │
└─────────┴────────────────────────────────────────────────────────────────┘

View Modes#

Depending on whether you are authoring a system, tuning parameters, or running an active test, Paperboat offers three specialized View Modes:

Mode

What It Shows

Best For

Navigator (default)

Shows one page at a time at full size. The page rail sits on the left, sliding smoothly between Station, Flow, and Board.

Focused work: wiring a complex flow, fine-tuning station geometry, or inspecting a log.

Commander

Places the Station and Flow side-by-side in split panels, with the Board available as a pull-up drawer at the bottom.

Authoring and tuning: editing physical parameters or block gains while watching live oscilloscope responses in the drawer.

Lookout

The Board fills the screen. The Station and Flow fold into collapsible side drawers.

End-user monitoring, live test stands, and production rigs where telemetry is primary.

Switching Modes#

  • Click the mode name on the top navigation bar ([ navigator ] commander lookout). Selected options are highlighted with bold ink in brackets, never a filled shape.

  • Press Alt + M to cycle through the three modes sequentially.

  • In Navigator mode, press Alt + 1 (Station), Alt + 2 (Flow), or Alt + 3 (Board) to jump directly to a page.

Working with the Station#

The Station page represents the “physical” world of your project. View > Station page shows or hides it; a hidden Station leaves the other pages as they are (Commander puts the Flow and the Board side by side, and Lookout has no Station drawer). A backend can start with it hidden by setting [station] visible = false in its descriptor.

Interacting with the 3D Scene#

When your backend provides a 3D station (such as rigid bodies, vehicles, or kinematic arms):

  • Orbit / Rotate: Click and drag with the primary (left) mouse button.

  • Pan: Drag with the secondary (right) mouse button, or hold Shift while dragging with the left mouse button.

  • Zoom: Rotate the mouse scroll wheel.

Editing Station Objects#

  1. Click an object directly in the 3D scene or select it from the sidebar list.

  2. The property panel displays its properties (mass, damping, stiffness, initial position, dimensions).

  3. Type updated values directly into the recessed grey input fields.

  4. Linked blocks on the Flow page update their behavior on the next run.

Note

Station properties are edited exclusively on the Station page. The Flow page reads from and acts upon station objects via their linked blocks, but wires never overwrite station properties directly.

Working with the Flow Canvas#

The Flow page is where you construct the logic, signal generation, feedback loops, and data pipelines of your application.

Adding Blocks#

There are three ways to add blocks:

  • Quick Add: Press / or double-click anywhere on empty canvas space to open a fast search palette at your cursor. Type the name of a block (e.g., sine, pid, gain, monitor) and press Enter.

  • Block Browser: Click + Add on the canvas header to browse cards organized by package (signal, math, step, dashboard, domain-specific packages). Drag cards onto the canvas.

  • Insert onto Wire: Drag a block card from the browser directly over an existing wire. The wire will split and reconnect through the inserted block.

Wiring Ports#

  • Every block has input ports on its left and output ports on its right.

  • Click and drag from an output port to an input port. A connecting wire will snap into place.

  • Wires connect compatible types: - Signal wires (thin lines): carry numeric continuous or discrete values. - Step wires (dark lines with directional arrows): carry execution control tokens in Step flows. - Vector wires: carry multi-channel arrays (such as 3D coordinates or RGB vectors). - Image wires: carry raster frames and visual buffers.

  • An unwired signal input automatically defaults to 0.0.

  • Wires run square (horizontal and vertical runs only). Select a wire and drag the handle on any of its segments to move that segment; the bends are saved with the project.

Mixing Step and Signal Flow#

A sheet can hold both layers; it is still one canvas. Signal blocks outside stories run every clock tick, in dependency order. Step paths advance from their hats (Start, When, or Signal → Step) and stop at Wait, Join or a condition. Add a step block to a Signal sheet and the sheet becomes a mixed flow; the Add browser offers both layers.

A story is a state: its internal signal blocks run only while a path is at it. reset starts its blocks afresh on each entry; without it the state carries over. The Signal → Step block turns a 0/1 (boolean) signal into a step wire, starting a path when it rises (or falls). The other way, a path passing through Step → Signal sets its signal output y to its value and holds it until a path passes again: one set to 1 and one set to 0 switch a motor or a lamp on and off from a Step flow. Signal blocks read the new value a clock tick later.

Plates and Cards#

A simple block (a gain, a sum, a sine, a scope) sits on the canvas as a plate: its glyph or picture, bare port dots and a caption with its name and main value. Every block also has a card: a head with its name, tag, note (✎) and unfold / fold key, its ports by name, then its parameters as wells. The card’s port body is the plate: ports sit 16 px apart on both, so a port never moves along its side when a block unfolds or folds, and wires keep their shape.

To

Do

Inspect or edit a block

Double-click its plate (or select it and press Enter). The card floats over the plate, its ports exactly on the plate’s, without moving anything. Escape, a click elsewhere or selecting another block closes it.

Keep a block unfolded

unfold in the floating card’s head. The card takes the plate’s place on the canvas (its head above, its parameters below) and the blocks it would cover move aside: right of it, below it, above it. One undo step. fold puts the plate back. Saved with the project.

Many ports

A plate grows to fit its ports, 16 px apart; from four on a side, their short names show inside the plate. Hover a dot for its full name.

Blocks with no plate (step blocks, a block with no view, a missing block) are always cards.

Configuring Block Parameters#

Double-click a block’s plate to edit its parameters in its card, or unfold it on the canvas. Parameters are recessed wells on the card:

  • Numeric fields: Type values or use arrow keys to nudge.

  • Binding a variable: drag a variable from the Variables drawer onto a parameter’s well. Drop it on a plate: a block with one parameter that fits takes it there (the plate rings in the signal colour); a block with several opens its card so you drop it on the one you mean. The well, and the plate’s caption, then show the variable’s name in an ink outline.

  • Variable fields: A parameter that names a project variable (the Variable block’s name, or the target of a tuner block) is a picker: type a name, choose one from the list, or drop a variable from the Variables drawer on it. A block that sets that variable during a run (an autotuner, a calibration) updates it live, and the new value stays in the project when the run ends.

  • Live variables from Squero Studio MX: while MX runs next to Paperboat, its workspace shows in the Variables drawer with an MX badge (type number, text or matrix; hover a row for its full value). They are read-only and never saved in the project. Drop one on a field to bind it: a matrix fits a matrix field such as the Matrix block’s values or a state-space matrix. A run sends the value MX last broadcast in place of the name, so the binding follows MX between runs. A matrix of more than 4096 values is not shared live: its row says so, and a run that uses it stops with that reason.

  • Function Expressions (f(t)): In expression blocks (like signal/function), you can type arbitrary formulas such as:

    sin(2 * pi * f * t) + amp * cos(omega * t)
    

    Paperboat automatically parses the formula and dynamically generates input ports on the block for every variable name found (f, amp, omega). The time variable t is special: when connected, it reads your custom signal; when unwired, it automatically reads the simulation clock time!

Grouping and Subsystems#

  • Visual Groups: Select multiple blocks and press Ctrl + G to enclose them in a titled bounding box. This keeps complex diagrams readable without altering execution.

  • Subsystems: Collapse a group into a single compact block with clean external ports. Double-click a subsystem block to navigate into its internal sheet. Use the breadcrumb bar at the top or press Escape (or Alt + ↑) to pop back up.

  • A subsystem’s ports are blocks: an In block inside a subsystem (or story) is an input port on its block outside, an Out block an output port. They are in the block browser’s group package, and work like any block: place as many as you like, wire them, move them (the ports outside follow their order, top to bottom), delete one to remove its port. Each is a pill that says which port it is, In 2 (its number among the Ins, top to bottom), then its name. Double-click the pill to name the port (Enter keeps it, Escape cancels); outside, the port shows the name, or In 2 while it has none. A port stays when its wires go: it is the block.

    • Grouping wired blocks puts an In where each wire comes in and an Out where each goes out, so a new subsystem’s ports are blocks from the start.

    • Adding a port from outside: while you drag a wire, a subsystem shows a dashed + port under its last port on each side. Drop the wire there: an In (or Out) block is added inside, already wired.

    • Ungroup takes the In and Out blocks away and joins the wires through them.

    In and Out pass their value through unchanged, of any type, so a run is the same with or without the subsystem. A wire straight into a block inside a subsystem from an older project still works: it shows as an In or Out pill at the edge.

  • Analyses: when an installed toolkit offers one (the control toolkit’s linear analysis, say), a subsystem’s head has an analyse key and the selection dialog an Analyse key. The Analysis drawer opens beside the page with the toolkit’s results for that part of the flow: its inputs are the wires coming in, its outputs the wires going out. It follows your edits.

Commenting and Annotating Blocks#

During iterative testing, tuning, and debugging, you can temporarily disable or bypass blocks without deleting them, losing parameters, or rewiring ports:

  • Comment Out (Ctrl + / or Edit ‣ Comment out): Select one or more blocks and press Ctrl + / (or Comment ▸ Comment out on the floating selection toolbar). The blocks dim to muted opacity with a // commented tag, and connected wires dim. Commented-out blocks are excluded from simulation; downstream blocks cleanly receive default unwired values (0.0). Feedback loops through commented-out blocks are not algebraic loops.

  • Comment Through / Bypass (Ctrl + Shift + Y, or Comment ▸ Bypass in the selection bar): Bypasses the block’s internal computation and passes signals directly from input ports to matching output ports (e.g. single-input single-output blocks like PID controllers, gains, delays, or filters pass in directly to out). In Step flows, execution tokens immediately traverse across bypassed step blocks to their next output.

  • Block Notes & Documentation: Click the small note button in any block header to open a recessed well where you can record formulas, design notes, or tuning rationale. The notes are saved directly in your .ppj project file.

  • Canvas Annotations (base/comment): Add a freeform note card from the Block Palette (base/comment) onto the canvas to document subsystems, test setups, or architecture directly alongside your blocks.

The Board (Instruments & Telemetry)#

The Board displays live telemetry produced by Monitor blocks in your flow.

Available Instrument Types#

  • Wave Plots (graph): Live scrolling oscilloscopes displaying signals over time. Plots feature automatic vertical auto-scaling, clear grid hairlines, and legend labels.

  • Numeric Displays (display): High-legibility digital readouts in black display wells, ideal for setpoints, current velocities, errors, or cycle counts.

  • Image Displays (image): Real-time visual streams, camera feeds, or generated plots.

  • Scope (scope): The instrument to study signals with: several channels (a vector wire is one channel per component), an axis per unit, zoom and pan, cursors, a trigger, xy and fft modes, CSV and PNG export. While a Scope is on the Board the run takes its smallest solver step as the sampling step, so the plot and exports show those points. Drag to pan (this freezes it), Ctrl + wheel to zoom time, Shift + Ctrl + wheel to zoom values, Ctrl-drag to zoom to a box, double-click to autoscale and follow the run again. With the Scope focused: F freeze or follow, C cursors, T trigger, A autoscale. + tap wires any output into it. Its mode, window, trigger, draw style and hidden channels save with the project.

Arranging the Board#

Paperboat automatically positions instruments based on the order and position of monitor blocks on your Flow canvas. You can customize the arrangement at any time:

  • Click Arrange to enter layout editing mode.

  • Change tile sizes: Compact (1×1), Normal (2×1), Large (2×2), or XLarge (3×3).

  • Drag tiles into your preferred order across the responsive grid.

  • Add Sections (bordered groups with headers) or Separators to partition subsystems.

  • Embed live Variables directly into section titles and note cards using brackets, such as Current Gain: {kp}.

Running and Monitoring#

The Run Dock#

The Run Dock floats gracefully at the bottom of the canvas, rendered in semi-transparent glass:

┌ ▶ Run  ■ Cancel  for ░10░ s ░1×░  running 3.2 / 10 s ┐
  • Run / Pause: Click ▶ Run or press Space.

  • Cancel: Click ■ Cancel to stop the current run immediately.

  • Duration: Edit the run duration in seconds (e.g., 10 s). The ∞ key beside it (or 0) runs until you cancel or the flow stops; click the ∞ that then takes the field’s place to set a duration again. A long run’s plots keep their whole span at one even resolution, so a run at Max for thousands of seconds still draws a step’s edge where it happened.

  • Speed Multiplier: Toggle execution pacing between 0.5×, 1×, 2×, or uncapped Max.

  • Solver: the Run menu picks the run’s solver (RK4, RK45, RK2, Euler, Discrete, and the implicit CVODE and IDA for stiff systems: chemistry, circuits, fast and slow dynamics together); Run > Solver settings… sets its options: tolerances and the smallest and largest internal solver step for RK45, CVODE and IDA, sub-steps per clock step for the fixed-step solvers, and the clock step. The clock step is how often blocks run and monitors sample. A Scope is an instrument, not a glance: while one is on the Board, the run uses the smallest solver step as its clock (the max step, or the clock step divided by the fixed sub-steps) and sends the Scope a sample on every pass, so the plot and its CSV/PNG export follow the solver’s step, not the coarse clock. The Graph still draws one frame every few steps. Every block and station object whose own solver is auto (the default) uses it; the settings save with the project.

Replay and Stepping#

A finished interactive run keeps its samples and Station motion, so it can be studied again without rerunning it. Click ⏱ Replay on the dock (or Run > Replay last run):

  • Timeline: drag the scrubber to jump to any sim time.

  • Step back / forward (◀ / ▶): move one sample interval, the run’s own \(\Delta t\), so a mode switch or an edge can be inspected.

  • Play / pause (▶ / ❚❚): play the run again; at the end it starts over.

  • Speed: 0.25×, 0.5×, 1×, 2× or 5× wall-clock playback.

  • Live: leave replay and follow the next run.

While a replay is open, every Scope shows a needle at the playhead, Board readouts show the values at that time, wires into monitors carry the value they had then, and the Station shows the entity positions at that time (a web Station gets the same scene updates). Replays read the in-memory trace store, and a saved run record can be opened with File > Open run record…; File > Save run record… writes the current run’s samples and Station history as JSON (record.json from paperboat run --record, #277).

The Console#

Click the Console tab on the rail or open it from the Board drawer to inspect run logs:

  • Output lines are categorized as info, warn, or error.

  • When an error occurs, the Console prints the exact node ID that failed. Clicking the node link in the Console immediately highlights and pans to the offending block on the Flow canvas.

The Workbench (no domain)#

Paperboat’s engine includes a workbench backend with only the standard toolkits (base, math, signal and dashboard), no domain, and every optional toolkit installed in the checkout (control, opencv, optimization…). It listens on the default backend port, so the web app connects to it as it is:

./bin/paperboat start         # web app on :3047, workbench on ws://localhost:8765
npm run backend:workbench     # or just the backend
npm run dev                   # or just the web app, http://localhost:3047

The Flow opens with a Sine into a Graph; build any signal, mathematical or control model from the palette and run it. The Station page is hidden by default (View > Station shows it): a station belongs to a domain backend, and the workbench has none. The optional blocks are in the palette once their toolkit is installed in engine/toolkit. Connect a domain backend from File > Backend… to switch.

Until the backend answers, the pages show what Paperboat is waiting for (connecting to the backend at ws://…, then waiting for a backend at ws://… while it retries), with how long once it is slow and, after a few seconds, how to start one. A backend still being built says how far it is (configuring cart-pole, compiling cart-pole… 42s, starting cart-pole), and a failed build says why, from paperboat status. A backend that drops later leaves your pages as they are: the status pill and the Console say it is reconnecting.

Project Management#

Paperboat saves your entire workspace into human-readable, version-controlled project files with the extension .ppj (JSON inside).

  • Saving: Press Ctrl + S (or File > Save) to save changes. To save a copy, choose File > Save As....

  • Opening: Press Ctrl + O (or File > Open), or drag-and-drop any .ppj file (or an older .paperboat.json) directly into your browser window.

  • Session Restoration: If your browser accidentally closes or refreshes during a run, reopening the app presents an option to restore your unsaved session state.

Squero Studio: OpenModelica#

Squero Studio OM is a separate app, in the squero-studio-om repository, for building the equipment a Paperboat flow runs: you draw a Modelica model, and Paperboat opens the backend generated from it. It is not a page of the app above. Start it with paperboat start squero-studio-om [Model.mo], which fetches and builds the app from GitHub the first time (paperboat pkg manages it: pkg versions squero-studio-om, pkg update squero-studio-om), and open http://localhost:59201; with no file it opens ./Untitled.mo, creating it if it isn’t there. It needs OpenModelica (omc) on the path.

The bar reads squero studio [ OM ], then the menus (Edit, View), the model’s name and, at the right, the compiler’s state: omc 1.27.0 · ready, checking while it works, failed when it has stopped. Studio has no modal dialogs; a refusal is a sentence at the foot of the canvas.

The library (left) lists the Modelica Standard Library one package at a time (click a package to open it) and, under This project, other classes the server has loaded. Each part shows its icon. Drag a part onto the canvas, or double-click it, to place it. The filter box searches every part by name, then by path.

The canvas is the model’s diagram. Every edit is a call to omc (addComponent, addConnection, setComponentModifierValue…) followed by reading the model back, and the file is saved after each one, so the .mo stays a normal Modelica file that OMEdit opens.

  • Wiring: drag from a port to another. A physical (acausal) wire has no direction and may start at either end; a signal (causal) wire runs from an output to an input and is drawn with an arrow. A wire the rules refuse is not drawn: the reason is written at the foot of the canvas (a PositivePin does not join a Flange_a, an input does not join an input). Three or more wires on a port draw a junction dot. A wire’s stored bends (Line(points)) are kept on the 20px grid. Wires run square, as on the Flow canvas: select one and drag a segment’s handle to move it; the new bends are written to the .mo.

  • Moving and deleting: drag a part to move it; Delete removes the selected parts or wire.

  • Quick add: press /, type a part name and press Enter to place it. With a wire selected the part is spliced in: the line above the list says exactly what will happen, for example Insert R2: R1.n -> p, n -> L1.p, and Enter does it as one step.

  • Undo: Ctrl + Z and Ctrl + Shift + Z step through your edits; a splice is one step.

  • A part with an if connector shows it only while its parameter is on; an array connector is one port with a count.

The split view (right) shows the model beside the canvas. [ .mo ] is the Modelica text (read-only for now). [ causal ODE c++ ] is the backend Studio would generate, from a dry run: nothing is written. Above the code it says which way the model goes, ode (a plain C++ model) or fmu (omc’s compiled model behind an adapter), and why; an FMU model shows no code, since omc builds it. The dock’s Export backend writes the real thing.

Simulate is a check, not a second Flow page: set a stop time, press Simulate, and omc runs the model and plots chosen variables. Switch variables on and off with the chips under the plot. Nothing leaves Studio: no block, board or backend is involved; put the model in a flow by exporting it.

Help#

The Help key at the end of the menus, or F1, opens the same Help window in Paperboat and both Squero Studios: a search field, the matching topics, and the chosen page.

  • Paperboat lists a reference page for every block the backend offers, written from its template: what it does, its inputs and outputs, and its parameters with their defaults and units. F1 with a block selected opens that block’s page.

  • Squero Studio MX shows Julia docstrings from the kernel (F1 on a word in the editor, or ?name, help name and doc name in the console).

  • Squero Studio OM shows the Modelica library’s own documentation; F1 with a part selected opens its class, and links between classes stay in Help.

Every app also lists its Keyboard shortcuts, read from its menus.

Keyboard Shortcuts#

Shortcut

Action

Space

Start or pause simulation run

Ctrl + K (or Cmd + K)

Open Command Search palette

F1

Open Help, on the selected block, part or word

/

Quick add block at cursor (on Flow canvas)

?

Show canvas gestures and shortcut cheat sheet (on Flow canvas)

/ in Squero Studio

Add a part to the Modelica diagram, or splice it into the selected wire

Alt + V in Squero Studio

Open or close the interface sheet

Ctrl + Enter in Squero Studio

Simulate the model (OM); run the cell at the cursor (MX)

Ctrl + C in Squero Studio

Cancel the running simulation or script, when nothing is selected to copy

Ctrl + /

Comment out / uncomment selected blocks

Ctrl + Shift + Y

Comment through / bypass selected blocks

Alt + M

Cycle View Modes (Navigator → Commander → Lookout)

Alt + 1

Switch to Station page

Alt + 2

Switch to Flow page

Alt + 3

Switch to Board page

Alt + ↑ or Esc

Exit subsystem / navigate up one level

Ctrl + S

Save project

Ctrl + O

Open project file

Ctrl + Z / Ctrl + Shift + Z

Undo / Redo canvas modifications

Delete or Backspace

Delete selected blocks or wires