Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Playing, pausing and continuing avi

Hi everyone,

 

I'm using LV10 and would like to know if it's possible to

 

a) pause a playing avi file and then continue it from where it was stopped

 

b) pause a playing avi file, scroll to a certain frame on a controlbar and continue it from there

 

 

My main concern is the loop iteration terminal which is needed to keep the avi file playing. When I'm using a case structure (in the while loop) to switch between playing and manually choosing the frame, the iteration continues... leading to a jump after switching back to play mode or ending the loop when [i] equals the max. frame number.

0 Kudos
Message 1 of 3
(3,889 Views)

Instead of using the loop index to select which frame to load, use a shift register.  Only increment the number in the shift register when the movie is playing, not while paused.  With a little work, this can be integrated with a progress bar to select any frame to view.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 3
(3,887 Views)

Once again, thanks for your help!

 

Not using the loop index really made everything easier. I used a shifted register at first, after I integrated a progress bar with a pointer I had to use a local variable. Now everything does what it's supposed to.

0 Kudos
Message 3 of 3
(3,870 Views)