LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

use of timed sequence in a special way

Hello,
 
I have to implement two alternating cycles with different running times. It is important, that the cycles can be interruptet at any time. I wrote an implementation which is working fine, but I guess that there must be a much smarter solution by using the timed sequence.
Any ideas?
 
Thx in advance,
 
                                   Magnus
Message 1 of 3
(2,606 Views)
Can you explain what you mean by "reset" (or interrupt) a cycle?
  1. Should the time of the current cycle start from scratch? (my implementation below).
  2. should it continue forever in the currenst state until the reset button is released again? (Your current function(?))
  3. Should it pause the VI?
  4. Should it immediately switch to the other cycle?

Some suggestion.

  1. Forget the stacked sequences and all these local variables, none are needed. Now you can use latch action booleans. 🙂
  2. Use a single loop with a case structure for the two cycles.
  3. Use a single reset button, it acts on the current cycle automatically.
  4. 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

Message 2 of 3
(2,602 Views)
Thank you very much, that simplifies my VI dramatically. Smiley Very Happy
0 Kudos
Message 3 of 3
(2,594 Views)