LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pause and continue

I am not able to continue the while loop from the same point where i paused.see the attached Vi and please give some hints.
0 Kudos
Message 1 of 3
(2,233 Views)
could you explain what you are trying to do? Why are you using a local variable rather than the Pause button?
David
www.controlsoftwaresolutions.com
0 Kudos
Message 2 of 3
(2,221 Views)

Of course not.  That's because execution is in parallel between the top portion of your code which goes to the pause loop and the bottom part of the code which builds a bunch of arrays.

 

Another thing is that you want the Pause button to become visible only if the time delta is between 25 to 30 seconds, which will only occur once maybe twice depending on how quick you press the pause button.

 

You should consider using a State Machine to implement your solution.  You would have a "pause" state, that basically does nothing except monitor a change of state of the pause button which affects the next state.  

 

You can find many examples of state machines on this forum.

 

To learn more about LabVIEW, I suggest you try looking at some of these tutorials.

0 Kudos
Message 3 of 3
(2,209 Views)