LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an AVI file

Highlighted

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
(804 Views)
Highlighted

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 8.5.1 - 2019 Pro Dev
0 Kudos
Message 2 of 3
(791 Views)
Highlighted

Good Advice.  I will try it.

 

Thanks.

0 Kudos
Message 3 of 3
(779 Views)