09-15-2011 02:15 PM
Hi every one
I want to import hundreds of images to Labview and after
that export them to the DMD. One approach that I found is that I give the
program the path of images folder and automatically let it read all image from
folder by recursive list file function. But the problem is by this method I
only have the file path and the transferring speed is a problem because I want
to transfer image in 0.001 s. so I decided to import all images and save them
in an array but I do not know how to save 1 bit bmp image to an array.
I really appreciate if anyone could me or give me a better
solution
Thanks
Morteza
09-15-2011 03:16 PM
Try this. Reads in JPGs and builds an array of picures.
09-16-2011 01:23 PM
Morti,
What is a DMD and how are you transferring data to this device?
You said you want to open a 1 bit BMP file, you are referring to monochrome bitmaps, correct?
Did the array of images posted previously help you?
09-17-2011 09:45 AM
I really appreciate the Matthew`s answer. It was such a VI that I
needed. I localized it to my VI.
Actually DMD is Digital Micromirror Device by Texas Instruments
Please Refer to these Webpages:
http://en.wikipedia.org/wiki/Digital_micromirror_device
http://www.dlinnovations.com/index.php?page=products§ion=d4100&subsection=alpbasic
http://www.ti.com/lsds/ti/analog/mems/mems.page?DCMP=TIHomeTracking&HQS=Other+OT+home_p_mems
this device is used in many applications such as projectors. I am
going to transfer thousands of monochrome bitmaps to this device
through labview in a fraction of time ( i.e in every milliseconds).
but there is 2 problem :
1- the transfering speed through USB
2- the processing speed of Labview
when I wanted to use an array for saving all image data memory went to 6GB, so Can you help me how to optimize the program to use less memory?
Thanks again
09-19-2011 01:43 PM
Hi Morti,
I'm glad Matthew's VI was helpful to you. One thing I did see though was that it displays the picture arrays on the front panel. If you don't need to view the array on your front panel, removing the indicator for it should significantly improve performance for you if you're processing a large number of images. The following KB has a few things you can take into account.
How Can I Optimize the Memory Use in My LabVIEW VI?
http://digital.ni.com/public.nsf/allkb/771AC793114A5CB986256CAB00079F57?OpenDocument