05-31-2009 11:25 PM
hi,
i am working on a vi , which has stages from 0...5. i am trying run the program, so that it executes case 0...5 one after other. and if i want to stop the program in the middle of the process, how i can connect the "stop" button to all cases, so that they all stops at the same time.
Could you pls help me ..
05-31-2009 11:30 PM
05-31-2009 11:40 PM
05-31-2009 11:43 PM
05-31-2009 11:53 PM
Hi Sandy,
Use a boolean shift register in which the stop button state can be updated and the same can be used as the case selector to select whether to run or not to run the forthcoming cases. So that the program will come out of the cases immediately without any delay and stop thence.
MRK (CLAD)
05-31-2009 11:58 PM - edited 05-31-2009 11:59 PM
If all five states always execute in sequence, you could also do something similar to the following. (assuming you have a newer LV version that alllows for the conditional terminal in FOR loops)
Use shift registers to hand data from one state to the next if needed.
06-01-2009 09:09 PM
HI altenbach,
Thank you so much for the solution.
As i am new to labview, i am trying to log all outputs of my vi.
that is , i want to display the outputs of each case structure as it executes.
Could you pls help me to do this.
Thank you.
06-01-2009 10:41 PM
06-01-2009 10:45 PM
Is this ok?
MRK (CLAD)