Implement a cyclic latency scan
Description
At the moment, the latency scan stops when the maximum latency value is reached. While this is fine for normal data taking, the ability to loop over the latency values can be useful for timing scans.
Possible fixes
Add a configuration option to perform a cyclic latency scan.