LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pause and resume the loop which loop needs to contineously runs?

Solved!
Go to solution
Highlighted

I have a application in that one loop runs continuously, when I call that loop it should pause the iteration and when I call that loop it should resume the iteration. How can Implement??

Can any one help me,,,,?

0 Kudos
Message 1 of 15
(1,120 Views)
Highlighted

Not clear , can you explain it better or attach any VI or picture of block diagram.

0 Kudos
Message 2 of 15
(1,112 Views)
Highlighted

 

Yeah sure...!!!!

 

 

Try with notifiers...!! By which communication can be done between two independent loops...!

 

 

 

Sony...........Smiley Happy

'' A professional is someone who can do his best work when he doesn't feel like it''...........
0 Kudos
Message 3 of 15
(1,099 Views)
Highlighted

Thank you for reply,,,,

Please refer the below vi. To explain my concept I have used while loop you can use any other loop also. But your using that loop should continuously run.

0 Kudos
Message 4 of 15
(1,094 Views)
Highlighted

can you save it in 2009 version.

Message 5 of 15
(1,087 Views)
Highlighted

@Sony......

 

Thanks for your reply,,,,,,,,,,,

Can you implement and upload any sample vi for me,,,,,

0 Kudos
Message 6 of 15
(1,086 Views)
Highlighted

@Neos

 

you can open this snippet,,,,

0 Kudos
Message 7 of 15
(1,074 Views)
Highlighted

keep the value in uninitialize shift register and read from there. 

 

It is solution only for what you have shown in picture.

Do you want anything else.

0 Kudos
Message 8 of 15
(1,066 Views)
Highlighted

@Neos

 

How can I pause and resume the loop???

0 Kudos
Message 9 of 15
(1,055 Views)
Highlighted
Solution
Accepted by topic author DGP77

You don't want to pause and resume the while loop.

You want some part of your program to pause and resume.

You can make a state machine in which pause does not execute your code and resume starts executing your code from where you left. Use shift registers to hold your data.

another thing if you just want to implement pause and resume you can use timeout events with value -1 and some time.

 

0 Kudos
Message 10 of 15
(1,043 Views)