The Primus CO₂ update grid¶
The stored CO₂ changes about every 40 ms: a 24.974 Hz update grid that is not locked to the 62.5 Hz samples and slides through a full update every 40 s or so. Each stored value describes a 40 ms interval that closed 0–40 ms before its stamp.
| Date | 2026-10-28 |
| Status | current |
| Methods | Clocks carried in the signal, Rounding, heaping and value resolution |
| Clocks | Primus clock |
| Devices | Primus anaesthesia machine |
| Variables | Capnogram (Primus) |
Background¶
CO₂ changes every 2 or 3 stored samples. Whether that 25 Hz update grid is locked to the stored samples decides how old a stored value is at its stamp.
Data¶
The 30 recordings of the 240 Hz fold batch; up to 90 min from minute 10. The 12.5 and 25 Hz lines are in 99% of the release (What the stored waveform values say about the recording chain).
Method¶
An indicator of change (a value different from the previous one) during breathing; its fundamental near 25 Hz scanned in 0.0005 Hz steps on 10-minute pieces; its phase against an exact 25 Hz grid in 1 s and 5 s blocks.
Results¶
- Not locked. The update rate is 24.974 Hz on the file's clock (median of 30 recordings; all between 24.973 and 24.976 Hz; −980 to −1,080 ppm against 25 Hz), steady within each recording.
- The grid slides smoothly, one full 40 ms wrap every 37–41 s at those rates (39–48 s from the phase slope). Through 16 ms samples it seems to hold for about 8 s and then jump 8 ms; a simulation of one 24.974 Hz grid read on a 62.5 Hz grid gives exactly that staircase, so the steps are how the measurement sees a smooth slide.
- About 1,000 ppm is ten times the Primus clock's drift against SNUADC (+105 ppm by breaths): a nominal update period of about 40.04 ms, not clock error.
- Held in every recording tested. In 300 random recordings (
tools/waveform_survey.py(300 random recordings, seed 20261106;$W/waveform_survey/summary.json)), 63% of CO₂ samples repeat while the signal moves (runs of 2.7 samples; at least 45% in every window of the 298 where CO₂ moved enough to test), against 4–7% for the SNUADC waveforms, and "value changed" correlates +0.65 at lags of 5 and 10 samples: two updates per five stored samples. - Consequences for its spectrum: above 12.5 Hz the CO₂ spectrum shows the hold's images, not signal or noise, and its apparent floor, 21 dB above the rounding floor, is not noise. Spectral or noise work on CO₂ belongs on the update values, one per 40 ms.
Discussion¶
Each stored CO₂ sample shows the latest update, which describes an interval of about 40 ms that closed between 0 and 40 ms before the sample's stamp. Because the grid slides, that age cycles over its whole range every 40 s or so and behaves as uniform: a mean of about 20 ms (a bias) and a standard uncertainty of 40 / √12 = 11.5 ms. The CO₂ timing forms carry exactly this: a 40 ms support stamped at its close, 20 ms in the bias, and the hold position as a rectangular component (Capnogram (Primus)). It comes on top of the sampling line (The CO₂ sampling-line delay).
Limitations¶
30 recordings for the rate; the hold in 300 random recordings; the presence of the grid is release-wide.
Code¶
- vitaldb-bench:
tools/waveform_survey.py,tools/art_cycle_and_co2_grid.py,tools/art_cycle_and_co2_grid_plot.py
Figures¶