long t=t0;
long pnext=t+printInterval_ms;
boolean run = true;
while (!endEvent && run) {
SamplesEventsCount status = null;
<BUG>try {
System.out.println( TAG+" Waiting for " + (nSamples + trialLength_samp + 1) + " samples");</BUG>
status = C.waitForSamples(nSamples + trialLength_samp + 1, this.timeout_ms);
} catch (IOException e) {
e.printStackTrace();

long t=t0;
long pnext=t+printInterval_ms;
boolean run = true;
while (!endEvent && run) {
SamplesEventsCount status = null;
try {
if ( VERB>1 )
System.out.println( TAG+" Waiting for " + (nSamples + trialLength_samp + 1) + " samples");
status = C.waitForSamples(nSamples + trialLength_samp + 1, this.timeout_ms);
} catch (IOException e) {
e.printStackTrace();
