Add PgSetSum(...) command (RPC call) to set the sum of all PG delays
for one cycle. needed to calculate trigger delay times.
Add new getLoopTriggerDelay() function to be called by every loop. This
function figures out the correct trigger delay based on
 a) the PG cycle length
 b) the estimated readout time
 c) a user-defined additional delay in clks
This function is not yet finished and only works for single ROCs.
Merge branch 'master' into auto_triggerdelay
Rework GetLoopTriggerDelay, working towards stable module readout
with automatic TriggerDelay settings. Since I'm still having trouble
to get repeatable results with the DESER400 this is not finished yet.
FW2.20: Adding auto calculation for triggerdelay based on readout length
and PG cycle duration. Works very nicely with single ROCs (DESER160) but does not
really work with modules (DESER400) where the delay has to be increased dramatically
in order to have a more-or-less stable readout. This seems to be an issue with the
DESER400, at least scope pictures look fine, and there is lots of idle patterns
in between. Right now we need about 600*25ns delay between triggers, in principle
one could go down to ~100*25ns - which would give a boost in test speed.
Waiting for a reworked DESER400 version now.