Does this explain the observed 100 ns time offsets?
Regarding the TS programming, is there any reason not to program a simple priority list?
int getevtype() { int trigbits = gettrigbits(); // Experiment-specific priority list of triggers // Whichever numbered triggerbit is present in this order, it // is the event type int types[] = { 6, 4, 5, 3, 1, 0 };
int* type = types; while( *type ) { if( trigbits & (1<(*type-1)) ) break; ++type; } return *type; }
Should beat a hardcoded arbitrary number.