LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I continuously auto-save and auto-name the JPEG files with a controlled time interval

Solved!
Go to solution

Hi,

 

I am newly involved in some Labview projects that out of my knowledge. I am trying to save multiple JPEG images from a live imaging task to a folder in the computer hard disk every certain minutes. I'd like to name these files with the date and time (eg. Img_06012011_1635. jpg).Then, after hours long image capturing, I can have all the image files in a neat order.

 

My goal is to have the jpg files auto saved and auto-named with the data and time at that moment. I also need to control this waiting time between each savings.

 

Could you please show me some hints about this? See the vi attached, I know I need to do something on the "write path" part on the up right corner. Thanks!

0 Kudos
Message 1 of 11
(8,293 Views)
Solution
Accepted by topic author heronbank

Start with this

 

filename.png

=====================
LabVIEW 2012


0 Kudos
Message 2 of 11
(8,289 Views)

Thanks, Steve. When I built up a path with the date and time info and send them to the WriteJPEG File.vi like you mentioned, it stopped saving any files into the folder. Do you think this is the problem from my while loop?Could you show me if there is any other secret functions that restrains the file saving?

 

I am planning to save the image files every 30 secs,for example, and then I can have a bunch of jpg files with their unique names after hours long image acquisition.

 

I appreciate you kindly help!

0 Kudos
Message 3 of 11
(8,266 Views)

Steve, I figured this out. The format of the file names I assigned are not OK for the saving. I replaced some certain part of the filenames with space strings.  Everything works fine now. Thanks again.

0 Kudos
Message 4 of 11
(8,249 Views)

Heronbank,

 

Do you think you can repost your vi as a labview 2009 file?

 

 

I'm having similar issues to your initial problem, I think. I want to take a picture with my webcam and then save it...there will be many pictures so I want a new file for each picture. However, I am getting an error saving the file (I think the problem you encountered).

 

 

I think it's the timestamp that provides the error because of the slashes in the date? I am curious to see how you edited the filename to fix the issue. 

0 Kudos
Message 5 of 11
(8,190 Views)

sir

 

 i have saved some JPEG images in a folder. i want to process each image one after the other.How can i load images continuously?is it possible with for loop?can  you please help me

0 Kudos
Message 6 of 11
(7,217 Views)

Hi dfsfdsfv

 

You will have to create a path with the location of that folder that contains all the images and an array with all the names of the images, and then for each iteration of the FOR loop read one of the images of the array and process the image.

 

Regards

Esteban R.

0 Kudos
Message 7 of 11
(7,200 Views)

sir

 

can you please attach a vi or some tips?

0 Kudos
Message 8 of 11
(7,181 Views)

Hi dfsfdsfv

 

Here is an example I hope that it might be useful for your application.

 

Regards

Esteban R.

0 Kudos
Message 9 of 11
(7,169 Views)

Hi, heronbank

 

I have a same problem with you that IMAQ Writer File 2. VI stopped saving any files into the folder, and what format of the file names you assigned for the working smoothly. Can you give me an example? Thanks a lot.

Chen

0 Kudos
Message 10 of 11
(5,487 Views)