About

How It Works

Three programs in one desktop app: a shell that draws, a control service that runs the test, and an analysis service that does everything offline.

The desktop app

The Shell

Every screen. TypeScript and Svelte. It draws results and computes none.

The Control Service

Rust. The real-time loop, the guards on every drive, and the control laws.

  • Simulator
  • NI-DAQmx hardware
  • Law files

The Analysis Service

Python. Signal processing, modal fitting, finite elements, specifications and reports.

  • Scriptable
  • Units on every value

The Project File

Plain HDF5 with a documented layout. Any tool can read it.

Three Layers, Three Languages

Each language does the work it is best at, and the line between them is a rule, not a habit.

LayerLanguageOwns
The control serviceRustAnything the real-time loop or the simulator executes, the hardware backends, and the mathematics shared by control and analysis.
The analysis servicePythonEverything offline: analysis, modal fitting, finite element modeling, specification tools, reports and the scripting interface.
The shellTypeScript, SvelteEvery pixel and no numerics. A view asks a service for a result and draws it.

A Control Law Is a File

A control law is the mathematics the controller runs to decide the next drive. In Hertzforge it is a file: a WebAssembly component that implements one published interface. A law can be written, built and shared without rebuilding Hertzforge, and one law file runs on every platform Hertzforge runs on. The laws that ship are built from the same source, as files, and tests hold each file to its built-in twin.

The laws that ship, and how to write one.

What the Controller Guards

The law proposes a drive. The controller decides whether it plays. It checks every drive before it is played: that it arrived in time, is well formed, stays under the drive ceilings you set, and does not grow faster than the limits you set. It watches your limit channels and abort lines and stops when one is crossed. It holds a run before it starts when the identification is poor or a target cannot be reached, and says why. A law cannot switch any of this off.

Before a law file may arm on hardware it has to pass a check on a set of simulated test articles, and the record of that check is tied to the file's exact bytes. The simulator runs any law.

The controller does not judge whether a law controls well. That is what the benchmark set and the known limits are for.

The Simulator Is the Same Road

A simulated test runs through the same control service, the same protocol and the same screens as a hardware test. The simulator stands where the acquisition hardware would, with structures that have resonances, cross coupling between shakers, and joints that soften as they are driven harder. A run on the simulator is always labeled as one, on the screen and in its record.

Hardware

For a real test Hertzforge drives National Instruments acquisition hardware through the NI-DAQmx driver. The driver is loaded when a run starts, so building Hertzforge and running the simulator need no NI software at all.

A Run Leaves a Record

While a run goes, the control service writes it to a run folder. When it ends, the analysis side converts the folder into an ordinary project: the channel table, the setup, the limits, the log and every measurement, ready for a report or the next analysis.

The project file, .hforge, is a standard HDF5 file with a documented layout. Rename one to .h5 and HDFView browses it, h5py walks it, and MATLAB reads every dataset.

One Installer

The desktop app is one window with both services started beside it. It carries its own Python, so there is nothing else to install. The analysis core is also on PyPI, for scripts that use the same objects without the window.

The documentation has each of these in full.