01-27-2010 02:27 PM
Hi all!!
I have modified the version of motion detection here http://decibel.ni.com/content/docs/DOC-4717 and i set the program to write an avi file when there are motion... but for my project i must create an .avi file EVERY movement (1 motion detected, 1 avi file).
I attach here my project, can help me??beacuse actually i register only one frame in a 1 file.avi!!
Another question: when motion is detected, its possible register 5 second before the motion detection??
Thanks a lot!!
01-29-2010 07:34 AM
Hi Redmercury,
Thank you for posting your question on NI forum.
I took a look to your snapshot. First of all i would suggest you to move the IMAQ AVI Close out of the main while loop. I figure out that you are destroying all frames you store by running this subVI every time the while loop execute the next iteration step.
Then, keep in mind that it would a good programming practice the use of the error cluster wires through all SubVIs you use in the block diagram. Lastly make sure your code is readable so that another developer could simply evaluate and undestand the code you edited