08-24-2007 07:50 PM
08-24-2007 08:21 PM
08-24-2007 09:58 PM - edited 08-24-2007 09:58 PM

Message Edited by altenbach on 08-24-2007 07:59 PM
08-24-2007 10:13 PM - edited 08-24-2007 10:13 PM

Put a small wait statement inside that inner loop so it doesn't spin like crazy polling the clock.
Message Edited by Ravens Fan on 08-24-2007 11:16 PM
08-25-2007 01:36 AM
@Ravens Fan wrote:
You don't mention the extra iteration, but talk about the current iteration.
In this case it would be better to use the timeout case of an event structure for the DAQ, just set the timeout to your desired loop rate.
Place the stop and other operator events in a seperate event case, so it can override the timeout and execute immediately. See attached draft.
(If your acquisition has many steps and takes a long time, you should rewrite it as a state machine that can be interrupted between any of the steps.)