08-09-2014 01:02 AM
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,,,,?
Solved! Go to Solution.
08-09-2014 01:07 AM
Not clear , can you explain it better or attach any VI or picture of block diagram.
08-09-2014 02:01 AM
Yeah sure...!!!!
Try with notifiers...!! By which communication can be done between two independent loops...!
Sony...........
08-09-2014 02:05 AM
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.
08-09-2014 02:09 AM
can you save it in 2009 version.
08-09-2014 02:09 AM
@Sony......
Thanks for your reply,,,,,,,,,,,
Can you implement and upload any sample vi for me,,,,,
08-09-2014 02:15 AM
@Neos
you can open this snippet,,,,
08-09-2014 02:24 AM - edited 08-09-2014 02:29 AM
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.
08-09-2014 02:36 AM
@Neos
How can I pause and resume the loop???
08-09-2014 03:13 AM
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.