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

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
(2,985 Views)

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

0 Kudos
Message 2 of 15
(2,977 Views)

 

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
(2,964 Views)

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
(2,959 Views)

can you save it in 2009 version.

Message 5 of 15
(2,952 Views)

@Sony......

 

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

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

0 Kudos
Message 6 of 15
(2,951 Views)

@Neos

 

you can open this snippet,,,,

0 Kudos
Message 7 of 15
(2,939 Views)

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
(2,931 Views)

@Neos

 

How can I pause and resume the loop???

0 Kudos
Message 9 of 15
(2,920 Views)
Solution
Accepted by 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
(2,908 Views)