ihedvall / mdflib

Implementation of the ASAM MDF data file.
https://ihedvall.github.io/mdflib/
MIT License
73 stars 30 forks source link

Add a simple OnSample observer #47

Closed ihedvall closed 10 months ago

ihedvall commented 11 months ago

Instead of having the channel observer that collect all samples in the memory, the idea is to only save the last value and have a callback for each sample.

ihedvall commented 10 months ago

The OnSample is now available. Note that it cannot handle VLSD CG i.e. variant length data stored in a CG group. This is sometimes common when doing CAN bus logging (CSS Electronics).