LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Two loops with different durations within a big loop... Is it possible???

Hi Dave,
 
First of all, thanks so much for helping me for my program and I think it is now doing what I want. But now I realized my program has a problem from your question about the "start/stop monitoring" switch.
 
About this switch "start/stop monitoring", my original idea was to use this switch as a start and stop button of my program. When I turn it on, it is supposed to start the outside loop A (which will activate the main program) and then continue to run loop B to record data. The modified program from you is currently doing that. Thanks a lot!! 🙂
 
When this switch is turned off, not only it should stop the inner loop B, I would also like the main program to be turn off as well. In other words, when the "start/stop" switch is turn off, I would like loop A to be continue running but not to start the main program and not to run loop B. Do you think this is possible? Or I should modify the logic of my VI completely. Or can you suggest a better way of running what I want to do? Many thanks in advance.
 
 
tak
0 Kudos
Message 11 of 14
(1,036 Views)
Hi Tak,
there is a simple solution to your problem. You only need a local variable of the "Start-Stop"- Switch. It looks like this:



If you also want to stop the "experiment.vi" it is necessary to place the global variable "experiment stop" behind the OR- node, because: "experiment stop" = True if Emergency OR Start/Stop. This should do what you need.
Greets, Dave (TW)

Message Edited by daveTW on 06-27-2006 09:57 AM

Greets, Dave
Message 12 of 14
(1,022 Views)

Hi Dave,

Thank you so much. The program is now doing what I really want. Many thanks to you again.

tak

0 Kudos
Message 13 of 14
(1,015 Views)

Hi Dave,

Thank you so much. The program is now doing what I really want. Many thanks to you again.

tak

0 Kudos
Message 14 of 14
(1,017 Views)