10-09-2008 11:44 AM
Hi. I have an image acquisition program (vi) that processes and displays sequence of images in real time, all in one loop. Currently my images are being displayed in a sequence (30fps) The displayed image uses some information from the previous iterations of the loop. At some point i need to stop the sequence a look at the still image. (like pause button)
What i am trying to do is to freeze my loop with a click of a button, and then be able by unclicking the button to continue. It is important to do this operation without exiting the loop.
Any clues on how to do this?
Thank you,
Christos
10-09-2008 12:45 PM
Hi there
why not simply placing a case structure around the part of the block diagram where the image is written to the display? Enable/Disable the case structure with a boolean switch on the front panel.
10-09-2008 01:50 PM
Hi, this will not work in my case. I have pipelines in the loop. I want to stop display and processing at a certain frame and then continue from there without losing my previous values.
For better understanding i am attaching a pic with the loop
Thanks,
Christos
10-09-2008 01:52 PM
I am sorry here is the attachment
10-09-2008 02:02 PM
one picture tells more than 1000 words....
You can have both the current and the last frame before pause. See attachment.
10-09-2008 02:09 PM
Your code pauses ok, but when it continues it does not continue from the paused frame.
When i pause, lets say at frame 45, and then unclick pause, program needs to continue from frame 46 and use the previous data from processing.
10-09-2008 02:29 PM
See attachment..
Am I'm right that your app shall be totally blind during a pause? I mean, you ignore any visual data during a pause?
10-10-2008 07:33 AM
10-13-2008 05:46 PM
Hi Christos
I am a little confused as to what you want running during the pause. Maybe you could try using simply place a while loop in your code that will lock it up until the pause is disabled. You might want to place processes that you still want running in a parallel loop if you do this.