LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Video recording loops

Solved!
Go to solution

Anything not dealing with initializing or closing was what I was referring to by the "meat" of the code.

 

For example, you'll always want your grab in a loop, but you only need to initialize the camera once.

Chris Van Horn
Applications Engineer
0 Kudos
Message 11 of 16
(1,126 Views)
We tried making it so just the meat was in the while loop, however the recording does not stop at the specified test time of 11 seconds at the moment. It just continues recording until the stop button is pressed. We want it to loop continuosly on the 11 second loop.
0 Kudos
Message 12 of 16
(1,087 Views)
Bump
0 Kudos
Message 13 of 16
(1,057 Views)

Hey PSU,

 

Could you post your new code or at least screenshots? I might be able to find out why its not looping correctly if I can see what you have done so far.

Chris Van Horn
Applications Engineer
0 Kudos
Message 14 of 16
(1,055 Views)
Here is our current program.
0 Kudos
Message 15 of 16
(1,047 Views)

Ahh, makes more sense now.

 

I assume what was happening is this: 

 

(correct me if I'm wrong)

You were just creating an ever-increasing AVI in 11 second intervals. So, the AVI would go 0 seconds, 11, 22, 33, etc. But you are wanting only 11 second CHUNKS, not a file larger than 11 seconds.

 

If I have assumed correctly, you can avoid this by moving your Create and Close for the AVI inside ONE more loop. Your camera initialization is perfect, but if you have your AVI vis on the far outside, it will just keep writing to the end of it.

 

 

 

Moving the AVI Create inside your outer loop will cause it to re-write the AVI every 11 seconds, which is what you want to do.

Message Edited by Chris_VH on 04-14-2009 04:15 PM
Chris Van Horn
Applications Engineer
Message 16 of 16
(1,041 Views)