09-20-2017 11:32 AM
Hello All,
I am working on a system which has some timing constraints while acquiring images (640x512) so as to make faster I need to acquire them in memory but eventually I need to save it on the hard disk.
I have already programmed how to save on memory and disk in separate vi's but don't know how to do it one VI to first acquire in memory and then transfer it in image format(tiff, bmp or png) to the disk.
Please let me know.
Thanks
09-20-2017 12:36 PM
09-20-2017 12:37 PM
Are you talking about Vision images or pixmaps or LV pictures?
With NI Vision you can build an array of images (in memory) and later save them in a for loop.
09-20-2017 12:40 PM - edited 09-20-2017 12:44 PM
Is there any example of the same or a pseudo code which I can take and work on it from there?
Some time before I programmed where I was putting the images in a queue buffer but have no idea about the producer/consumer loop.
Thanks
09-20-2017 12:43 PM
I am saving pictures in .bmp format right now with Savimage.vi. It's not in IMAQ format as I have worked with it before but not sure about the other two formats.
Although I have a programming where I can put them in a queue buffer.
09-21-2017 01:28 AM
Hi Nitai,
I am saving pictures in .bmp format right now with Savimage.vi.
This "savimage" is not a VI/function supplied by NI, so we cannot comment on what you are doing - unless you attach your VIs in this topic…
Although I have a programming where I can put them in a queue buffer.
So why do you ask for an example for using queues?
Btw. LabVIEW comes with a lot of example projects, found when calling the menu entry "File -> New…". Atleast one of them is showing a basic producer-consumer scheme!