LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

freeze timing loop

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

 

0 Kudos
Message 1 of 9
(3,324 Views)

 

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.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 9
(3,310 Views)

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

 

0 Kudos
Message 3 of 9
(3,302 Views)

I am sorry here is the attachment

0 Kudos
Message 4 of 9
(3,301 Views)

one picture tells more than 1000 words....

 

You can have both the current and the last frame before pause. See attachment.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 5 of 9
(3,299 Views)

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.

 

0 Kudos
Message 6 of 9
(3,295 Views)

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?

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 7 of 9
(3,289 Views)
My application should display the last processed frame during pause. Meanwhile, all the variables that handle processing data should maintain the last value (just before pause) so that after pause processing will continue smoothly on the next frames
0 Kudos
Message 8 of 9
(3,265 Views)

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.

 


Thank You
Eric Reid
National Instruments
Motion R&D
0 Kudos
Message 9 of 9
(3,234 Views)