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!
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.