04-30-2012 08:26 AM
Hi,
I am Using USB camera for my senior project , I want to control this camera to detect a human body, using a motion sensor and capture images.
my question is how can I select a path to save these images captured from USB camera ?
in the figure below , the program that I am using for my USB camera
thanks in advance ...
Solved! Go to Solution.
04-30-2012 08:28 AM
this is my VI
04-30-2012 09:22 AM
05-01-2012 10:58 AM
This is another VI you would use to do the actual file-saving, called IMAQ Write File.
http://zone.ni.com/reference/en-XX/help/370281M-01/imaqvision/imaq_write_file_2/
05-05-2012 05:41 AM
Thank you very much for your help
now I can select a path for saving the captured images
but the problem that i can save only 1 image and when it takes another one the first is replaced and deleted, so how can i save all the pictures without any replacements ?
05-05-2012 05:45 AM
05-05-2012 06:07 PM
You need to change the filename path on every iteration of yoru while loop.
05-07-2012 01:14 AM
how can i do a while loop fot the path name ?
05-07-2012 09:51 AM - edited 05-07-2012 09:53 AM
Use string functions to build together a filename with a value that changes, such as the value coming from the i node of the loop for the iteration terminal.
Then build that string filename together with the folder path to provide you with a file path that changes each loop iteration.
05-08-2012 05:22 AM
i have attached my program
i want the file name to change every time to be image1,image2,..
i dont know how to insert that loop to increment the path name
i have tried many trials and it didnt work