LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to take save picture from webcam

Solved!
Go to solution

Hello

 

please see my attached VI, It working fine but when ever i press button to take picture and over write on previous image, how can i save all images in one folder.

 

Regards

asif 

0 Kudos
Message 1 of 4
(1,974 Views)

You have got to modify your file path each time. Once way of doing this is below (I don't have 2020 so I cannot modify your snippet)

 

You could also use your iteration terminal to generate the file suffix but as I am guessing you don't always want to be recording an image to file I am guessing that will not be quite what you are after.

 

I also polling a button isn't the most efficient way of handling button presses. Research the event structure and for a more efficient and scalable alternative.

unique file.png

0 Kudos
Message 2 of 4
(1,945 Views)
Solution
Accepted by topic author Asif138

A classic solution is to generate a filename from the time stamp, so it's named something like 211201-1515-332.jpg (todays date, 24h time, millisecond)

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 4
(1,915 Views)

Another option is to use the increment file name generator built into LabVIEW since 2018(?)

 

Frozen_0-1638369845342.png

 

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 4 of 4
(1,908 Views)