LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Webcam application on LabVIEW. How to save multiple picture in one folder.

Solved!
Go to solution

I have successfully capture a picture, but the program cannot saving multiple file. It keep duplicate the existing file when I capture the picture. Can someone help me on this.

 

 

Danialhzq_0-1690961881672.png

 

0 Kudos
Message 1 of 7
(925 Views)

You have to give a different path name for each picture. If the File Path stays the same, it will overwrite the old picture.

0 Kudos
Message 2 of 7
(914 Views)

I have try, but keep duplicate the first file name. 

0 Kudos
Message 3 of 7
(911 Views)
Solution
Accepted by topic author Danialhzq

Do you know the difference between an IMAQdx "Snap" and "Grab"?  "Snap" asks the Webcam for a single image, while "Grab" asks for a Video.  You coded up a "Grab", which you would ordinarily save as an .avi file, not a .jpeg.  Note the easiest way to acquire multiple images and save them in a compact manner (in a single file) is to acquire a Video at, say, 1 frame/sec, for 30 seconds (you'll get one file with 30 sequential images).

 

This is probably not what you want to do.  Learn more about IMAQdx (a reasonably "advanced" LabVIEW topic -- I didn't get exposed to it until I had been developing for several years ...

 

Bob Schor

Message 4 of 7
(856 Views)

Thank you for the information. Get it.

 

0 Kudos
Message 5 of 7
(850 Views)

Do you have any example program model that I can refers to ?

0 Kudos
Message 6 of 7
(847 Views)

Have you looked at the Examples that ship with LabVIEW?  One is called "Stream to AVI file" -- you might find it helpful.

 

Bob Schor

0 Kudos
Message 7 of 7
(835 Views)