04-03-2015 07:00 PM
Hi,
I have basic knowlegde of how to use labview and I like labview very much. therefore, I am desperate to know how to save several (at least 10) png images (using wrtite to PNG vi) in a directory in a minute. any help would be greatly appreciated.
Thanks
04-03-2015 07:51 PM
Yes the Write to PNG File functions within the picture palette.
Whare are you having problems?
04-03-2015 07:56 PM
04-03-2015 08:00 PM
Show your VI so we can see what you've done. What timing functions have you tried to use in your loop?
04-04-2015 06:32 AM
please see the attached png as my vi to save 10 images in a directory. so far I did not implement the timed saving option becasue I plan to do that once I am able to save at least 10 ong images.
Thanks in advance
04-04-2015 06:47 AM - edited 04-04-2015 06:49 AM
Hi naserkhan,
the filename never changes, so you write the same file several times. (Why do you need a FOR loop to generate a file name like "01234.png"? Why do you need to build filenames using string functions whenn all you need is StripPath and BuildPath?)
Is the filepath you generate correct in all parts? Did you (double-)check that?
How often does your loop iterate per minute?
04-04-2015 06:55 AM
HI GerdW,
I understand the error of not changing the name (01234) . my plan was basically to generate and save 5 images (as a start) 0.png, 1.png, 2.png etc. I also tried to put everything in the for loop but still din't work. I think I can figure out how to generate file names etc. so can you please explain how can I can save multiple images with different names in a directory.
Thanks in advance
04-04-2015 07:58 AM
04-04-2015 08:15 AM
Dear GerdW,
I have managed to save 5 images in a directory. Thank you for your guidance. Now I am stuck at how to save these images after a specific time interval. However, there is a condition of not slowing down the rest of the program. I tried using tthe 'wait until next ms' VI but this slows the whole program. Any help woul dbe appreciated.
Regards
04-04-2015 08:18 AM
Use parallel loops, one loop for saving files, and the other one doing the rest operations. You can communicate between the loops via a Queue for example.
You clearly need to learn a lot more, here you can find useful learning material:
http://forums.ni.com/t5/LabVIEW/Idiom-for-initialising-a-sub-VI/m-p/3086564/highlight/true#M882347