buffer not flushed at the beginning of an acquisition
-f parameter of fmc-tdc-tstamp
command does not flush the buffer before the start of the acquisition
$ fmc-tdc-tstamp -f -D 0x19 -c1 -s 10
channel 1 | channel seq 0
ts 1643036950s 154259554498ps
diff 1643036950s 154259554498ps [0.000000 Hz]
channel 1 | channel seq 1
ts 1643036950s 154260554361ps
diff 0000000000s 000000999863ps [1001001.001001 Hz]
channel 1 | channel seq 2
ts 1643036950s 154261554546ps
diff 0000000000s 000001000185ps [1000000.000000 Hz]
channel 1 | channel seq 3
ts 1643036950s 154262554490ps
diff 0000000000s 000000999943ps [1001001.001001 Hz]
channel 1 | channel seq 4
ts 1643036950s 154263554513ps
diff 0000000000s 000001000023ps [1000000.000000 Hz]
channel 1 | channel seq 5
ts 1643036950s 154264554457ps
diff 0000000000s 000000999943ps [1001001.001001 Hz]
channel 1 | channel seq 6
ts 1643036950s 154265554482ps
diff 0000000000s 000001000025ps [1000000.000000 Hz]
channel 1 | channel seq 7
ts 1643036950s 154266554423ps
diff 0000000000s 000000999941ps [1001001.001001 Hz]
channel 1 | channel seq 8
ts 1643036950s 154267554367ps
diff 0000000000s 000000999943ps [1001001.001001 Hz]
channel 1 | channel seq 9
ts 1643036950s 154268554472ps
diff 0000000000s 000001000105ps [1000000.000000 Hz]
$ fmc-tdc-tstamp -f -D 0x19 -c1 -s 10
channel 1 | channel seq 9200 <----------- should start from 0
ts 1643036950s 163459554519ps
diff 1643036950s 163459554519ps [0.000000 Hz]
channel 1 | channel seq 9201
ts 1643036950s 163460554705ps
diff 0000000000s 000001000185ps [1000000.000000 Hz]
channel 1 | channel seq 9202
ts 1643036950s 163461554568ps
diff 0000000000s 000000999863ps [1001001.001001 Hz]
channel 1 | channel seq 9203
ts 1643036950s 163462554835ps
diff 0000000000s 000001000267ps [1000000.000000 Hz]
channel 1 | channel seq 9204
ts 1643036950s 163463554615ps
diff 0000000000s 000000999779ps [1001001.001001 Hz]
channel 1 | channel seq 9205
ts 1643036950s 163464554556ps
diff 0000000000s 000000999941ps [1001001.001001 Hz]
channel 1 | channel seq 9206
ts 1643036950s 163465554500ps
diff 0000000000s 000000999943ps [1001001.001001 Hz]
channel 1 | channel seq 9207
ts 1643036950s 163466554605ps
diff 0000000000s 000001000105ps [1000000.000000 Hz]
channel 1 | channel seq 9208
ts 1643036950s 163467554466ps
diff 0000000000s 000000999861ps [1001001.001001 Hz]
channel 1 | channel seq 9209
ts 1643036950s 163468554490ps
diff 0000000000s 000001000023ps [1000000.000000 Hz]
$ fmc-tdc-tstamp -f -D 0x19 -c1 -s 10
channel 1 | channel seq 9797 <----------- should start from 0
ts 1643036951s 253552706503ps
diff 1643036951s 253552706503ps [0.000000 Hz]
channel 1 | channel seq 9798
ts 1643036951s 253553706447ps
diff 0000000000s 000000999943ps [1001001.001001 Hz]
channel 1 | channel seq 9799
ts 1643036951s 253554706470ps
diff 0000000000s 000001000023ps [1000000.000000 Hz]
channel 1 | channel seq 9800
ts 1643036951s 253555706414ps
diff 0000000000s 000000999943ps [1001001.001001 Hz]
channel 1 | channel seq 9801
ts 1643036951s 253556706519ps
diff 0000000000s 000001000105ps [1000000.000000 Hz]
channel 1 | channel seq 9802
ts 1643036951s 253557706542ps
diff 0000000000s 000001000023ps [1000000.000000 Hz]
channel 1 | channel seq 9803
ts 1643036951s 253558706568ps
diff 0000000000s 000001000025ps [1000000.000000 Hz]
channel 1 | channel seq 9804
ts 1643036951s 253559706591ps
diff 0000000000s 000001000023ps [1000000.000000 Hz]
channel 1 | channel seq 9805
ts 1643036951s 253560706535ps
diff 0000000000s 000000999943ps [1001001.001001 Hz]
channel 1 | channel seq 9806
ts 1643036951s 253561706232ps
diff 0000000000s 000000999697ps [1001001.001001 Hz]
By the user it is expected that the buffer is flushed, old timestamps are removed and the sequence id starts from 0.