LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an AVI file

Hello.  I am trying to save output from a video camera to an AVI file.  The trick is that the user can choose to view the output OR view and record.  My problem is that I get an error whenever the "record" button is pushed due to the "Create AVI" vi call being called on every iteration (See below).  Any ideas how I can fix this... is there a best practise for this?  Thanks!

 

Capture.png

0 Kudos
Message 1 of 3
(2,248 Views)

Well, let's see....   How about moving the "IMAQ  AVI Create" outside the loop??? Smiley Wink

 

Put it in front and pass in just the reference.

 

EDIT: Not sure on the AVI stuff but you should probably close that reference as well...  after the loop.Smiley Happy

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
0 Kudos
Message 2 of 3
(2,235 Views)

Good Advice.  I will try it.

 

Thanks.

0 Kudos
Message 3 of 3
(2,223 Views)