changing the stimulus while waiting for a response
#include <tscope5.h>
int main()
{
double start, stop, rt, error;
int i;
for (i=0; i<5; i++) {
if (stim==0) {
stim='S';
}
else {
stim='L';
}
rt = stop-start;
ts5_printf(0.0, -20.0,
"measurement error %f", error);
}
return 0;
}