ihedvall / mdflib

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

Add a simple OnSample observer #47

Closed ihedvall closed 11 months ago

ihedvall commented 1 year 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 11 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).