09-18-2012 06:17 AM
The attached is a picture of a timer program.
I need to run the big while loop for 3 times, each time for a 5s+5s time elapse.
The problem is that the program stuck at the second elapsed time in the first loop,
and remains there until all 3 big loops end. The first 2 films were not executed any more
and it never reaches the last film.
09-18-2012 07:13 AM
Without knowing how any of the express VIs are setup, I'm guessing you need to reset the Elapsed Time on the first iteration of its while loop.
I question whether this is necessary. Why not use the Wait (ms) with a 5000 wired to it. That would be a lot cleaner than an Elapsed Time inside of a while loop.
09-18-2012 09:14 AM - edited 09-18-2012 09:21 AM
stay away from sequenced events, especially in your case where you want to run multiple times of the same event...change it over to a simple state machine with your timer and a shift reg. to keep track of your #cycles . case structure would be: