08-23-2011 11:34 AM
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!
08-23-2011 04:00 PM - edited 08-23-2011 04:05 PM
Well, let's see.... How about moving the "IMAQ AVI Create" outside the loop???
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.
08-24-2011 01:58 PM
Good Advice. I will try it.
Thanks.