LaboratoireMecaniqueLille / crappy

Command and Real-time Acquisition Parallelized in Python
https://crappy.readthedocs.io/en/stable/
GNU General Public License v2.0
78 stars 16 forks source link

Add the `Synchronizer` Block #108

Closed WeisLeDocto closed 6 months ago

WeisLeDocto commented 6 months ago

This PR adds the Synchronizer Block to Crappy. This Block is roughly the same as the Multiplexer Block, except the Synchronizer takes a label as a reference and interpolates all the other labels on the time base of the reference one.

This Block was added consecutive to a request in #98. It is useful when data of a specific label needs to be preserved, but the other signals should still be synchronized with this label, for example if the reference label is the output of a low-frequency image processing.

Along with the newly added Block, the documentation was updated and a new example file was added.