06-30-2014 11:12 PM
Hi all,
Very good morning!!
I am working on an vision application where i need to create multiple avi files,with auto incrementing of avi file name. So that they will be used for surveillance purpose later.
Below are more details about my application to get better idea:
1) I need to store 30fps for 5 minutes minimum, my frame size is 640X480.
2)I need to store all these frames in an avi file and also create new file everytime i run the vi (so that each time i run the vi i should not over write the file and create a new file with change in file name)
3) I need to catch these group of frames whenever i get a UART interrupt called record mode (button hit upon requirement)
4) This file with frames should be stored in SD card and should be retrieved from USB port.
Please let me know particularly how point number 2 can be achieved.
Thanks in advance,
with best regards,
Sri
07-01-2014 01:17 AM
Hello,
you could have a configuration file stored on your hdd. And change the key (increment video number) each time you write a new .avi file. For example (just a basic example, you would probabrly need some additional error handling/safety features):
I used plain text functions to read and write the configuration file, but it would be better to use the "configuration file vi's" to write the specific keys (video number for example). You can also add additional information/keys.
If your main program is running all the time, you could also increment the video numbers to/from your memory, but reading this from file is the safer way I would say.
Best regards,
K