Can you explain what you mean by "reset" (or interrupt) a cycle?
- Should the time of the current cycle start from scratch? (my implementation below).
- should it continue forever in the currenst state until the reset button is released again? (Your current function(?))
- Should it pause the VI?
- Should it immediately switch to the other cycle?
Some suggestion.
- Forget the stacked sequences and all these local variables, none are needed. Now you can use latch action booleans. 🙂
- Use a single loop with a case structure for the two cycles.
- Use a single reset button, it acts on the current cycle automatically.
- Go with the dataflow! 😄
Attached is a simple demo showing some of the points (LabVIEW 8.0). Maybe it can give you some pointers. Good luck!
(Details of the implemetation really depend on your definition of "reset a cycle". Please clarify and modify as needed.)
Message Edited by altenbach on 09-29-2006 12:12 AM