Sample rate (data logging)

logging ratesampling ratesampling frequencylog rateHz logging rate

Sample rate is how many times per second a data logger records each channel, measured in hertz (Hz). It must be high enough to capture the fastest change you care about: by the sampling theorem, more than twice the signal's highest frequency, and in practice several times more. Too low a rate hides or distorts events.123

How it works

The Nyquist-Shannon sampling theorem says a signal can be reconstructed only if it is sampled at more than twice its highest frequency component. A boost oscillation at 10 Hz therefore needs more than 20 samples per second just to be detectable, and more to show its shape and peak accurately.12

Sampling too slowly causes aliasing. Fast changes fold into false slow patterns, so a rapid oscillation can appear as a slow wave or vanish. Anti-aliasing filters before the converter remove content above half the sample rate, trading detail for honest data.42

Channels need different rates. Coolant and oil temperature change over seconds, so a few samples per second is enough. Manifold pressure, throttle, lambda during transients and wheel speed change within tens of milliseconds and need far higher rates.

Knock and crank signals are processed inside the ECU at rates no ordinary logger matches.Medium35

Diagnostic-port logging is often the bottleneck. Requesting OBD-II parameters one at a time shares limited bus time among all channels, so adding channels lowers the effective rate of each. Direct CAN streaming or the ECU's internal logger usually achieves higher, more even rates.Medium67

In tuning

Match rate to the question.

Transient fueling, boost control and launch work need fast logging of pressure, throttle, lambda and speed. Steady-state table work can use slower rates. Record the rate in the log notes, because comparing peaks from logs at different rates is misleading.Medium31

Formula and worked example

f_s > 2 × f_max
f_s
sample rateHz
f_max
highest frequency component of the signal to be capturedHz
12

Myths vs facts

Myth Logging everything at the highest rate is always best.

Fact Higher rates use more bandwidth and storage and, on a shared bus, can slow other channels. Choose rates per channel based on how fast each signal changes.Medium37

Myth If a spike is not in the log, it did not happen.

Fact A slow log can miss short events entirely or show them smaller than they were, because of aliasing and the gap between samples. Absence in a slow log is not proof of absence.41

Frequently asked

What sample rate should I log at?

Pick per channel. Temperatures are fine at 1 to 10 Hz. Throttle, manifold pressure, lambda and engine speed are commonly logged at 20 to 100 Hz or more for transient work. Wheel speeds for traction and launch analysis need similar or higher rates. Always stay well above twice the fastest change you need to see.Medium13

What is aliasing in a datalog?

Aliasing is distortion caused by sampling too slowly. A fast oscillation sampled below twice its frequency can appear as a slower false wave or disappear. In tuning logs it can hide boost oscillation, misrepresent throttle tip-in or make a lambda swing look smaller than it was.42

Why is my OBD-II datalog so slow?

OBD-II tools usually request each parameter separately and wait for a reply, so the available bus time is shared among all requested channels. Adding channels lowers the rate of each. Direct CAN broadcast data or an ECU's internal logging typically delivers faster and more evenly timed samples.Medium69

How fast should I log lambda?

Fast enough to see transients, usually tens of samples per second or more. A wideband sensor and its controller also add their own response delay, so a fast log of a slow sensor still lags the true mixture. For steady-state table work slower rates are acceptable; for tip-in and launch work log as fast as the system allows.Medium101

Sources

Numbered as cited above. Hover or tap a citation chip to preview it.

10 sources
  1. Nyquist-Shannon sampling theorem · Wikipedia · reference · retrieved 2026-10-27
  2. High-speed, analog-to-digital converter basics (SLAA510) · Texas Instruments · vendor-doc · retrieved 2026-10-27
  3. Data logger · Wikipedia · reference · retrieved 2026-10-27
  4. Aliasing · Wikipedia · reference · retrieved 2026-10-27
  5. Automotive Handbook, 10th edition (2018) · Robert Bosch GmbH / Wiley · book · retrieved 2026-10-27
  6. SAE J1979: E/E Diagnostic Test Modes · SAE International · standard · retrieved 2026-10-27
  7. CAN bus · Wikipedia · reference · retrieved 2026-10-27
  8. Internal Combustion Engine Fundamentals, 2nd edition (2018) · McGraw-Hill (John B. Heywood) · book · retrieved 2026-10-27
  9. OBD-II PIDs · Wikipedia · reference · retrieved 2026-10-27
  10. Lambda Sensor LSU 4.9 product page · Bosch Motorsport · vendor-doc · retrieved 2026-10-27