From: fabien chevillotte on
Hey

I'm using a card DT-9738A (Data Translation) with the data acquisition toolbox.
I have a trouble when time-out error occurs. If trigger condition is not reached, I can catch the event time-out by using this code:
start(ai);
try
wait(ai,30);
catch
disp("timeout");
stop(ai);
end

The problem is that I can't stop analoginput when error occurs and the program runs as an infinite loop.

any idea?

Thanks

fabien