Motion Master 6.0.0-alpha.50
Next-generation motion control software
Loading...
Searching...
No Matches
RecorderConfig Struct Reference

"recorder" block — the lossless process-data recorder ring. More...

#include <config.h>

Collaboration diagram for RecorderConfig:
[legend]

Public Attributes

uint32_t capacity = 300000
 
std::string dumpDir
 

Detailed Description

"recorder" block — the lossless process-data recorder ring.

Member Data Documentation

◆ capacity

uint32_t RecorderConfig::capacity = 300000

Depth of the recorder ring in cycles/rows (must be > 0). The ring is allocated at process-image configuration to hold exactly this many cycles, independent of the GameLoop period — records carry absolute timestamps, so the depth-in-seconds is simply capacity × period. RAM ≈ capacity × per-cycle record bytes. A record is 28 B fixed (20-byte header + 8-byte publication word) plus the whole-bus IOmap — ~82 B per SOMANET drive (budget ~100 B). So a single drive at 300000 cycles × ~128 B ≈ 38 MB (≈ 5 min at a 1 ms period). It scales with drive count.

◆ dumpDir

std::string RecorderConfig::dumpDir

Directory for .mmpd recorder dumps written by POST /api/process-data/dump. Empty means a "motion-master" subdirectory of the OS temporary directory (resolved at dump time, cross-platform — never a hardcoded /tmp). The directory is created on first dump.


The documentation for this struct was generated from the following file: