Find a reliable way to match FESA wr-events and picoscope triggers
Major problem: On lower sampling rates the delay between two streaming_work calls on the DigitizerBlock can be ~100ms. (On high sampling rates it goes down to ~15ms, which still is not that nice)
Because of that, the timestamp used for the trigger tag is not very precise. TODO: Check how the precision of that stamp can be increased.
- Check how the precision of the stamps can be increased E.g. /usr/include/picoscope/ps3000aApi.h provides some methods, like ps3000aGetTimebase and others which sound promising
There are as well methods in order to find triggerers
Problem: On lower sample rates, like 500k, time_realligment requires 80ms matching tolerance Where for 2MS sampling rate 40ms matching tolerance are fine. (TODO: time_realligment not uased any more .. check if fesa event matching behaves the same way)
Currently there seems to be a fixed precision of ~10µs (1MS samp_rate, 1kHz Sink)
Gaps of ~10µs can be observed whenever a new ref-event is used.
Theoretically the precision should be increased when using higher sampling rates. Practically this seems not to be the case. Theoretically the precision for 1MS should be 1µs (10MS --> 100ns)
The precision (~10µs) correlates with the length of the cycle !!!
Find out why the precision does not behave like expected.
Find a reliable way to match FESA wr-events and utc_stamps !