LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display 1d array image data otherthan using draw flattened pixmap.vi

Hi friends,
                     I am capturing image from my own image capturing system using our functions in dll. My image capturing system output image as 1D array of bytes.  The image format is RGB data with bitdepth 32 bit.

I am new to labview and now my problem is ,

how to display the 1D array of image data in labview ?

I used DrawFlattenedPixmap.vi and picture control to display. I can display the picture correctly.
My sensor speed is nearly 30 frames per second for VGA (640 X 480)resolution in our own display program.  But in labview using this display method I can get approximately 10 frames per second only. So is there anyother method to display the 1D array of image data ? are any suggustions to increase the display speed?


Thanks for your suggestions.

aajjf.

0 Kudos
Message 1 of 5
(4,431 Views)
Hi aajjf,

I hope you are doing well today! What kind of system are you using? It seems to me that you are reading 30 frames per second into the computer and are slowed down when the conversions have to take place from a 1-d array to 2-d array in the Draw Flattened Pix Map VI. The only way in which you might speed up the conversion is to have a better output from your system. If you can explain your hardware setup and how the data is being sent into the computer, I might be able to suggest some other hardware and software for you.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 5
(4,402 Views)
Hi Adnan.Z ,
                       Thanks for your reply. Ours is a  Image capturing system,  used to capture and process the image data from the CMOS sensor. We have our own hardware , that capture the data from the sensor and send to the host system through USB interface. For capturing image from our hardware, we have set of functions in our DLL( build in VC++).  Using those functions we have already created programs in Borland C++ builder, Delphi , and VC++. In all those environment ,our system can capture 30 frames per second for VGA resolution sensor. So I am sure our hardware is speed enough to do that.

         Now we need to create sample programs using Labview. Using the Call Library Function Node I created subvi's for our DLL functions. Our capturing function output the image data as 1D array.  As I mentions earlier, I used DrawFlattenedPixmap.vi and picture control to display the image data. But the speed seams to be around 10 frames per second only. Is there any other method to display the image data in Labview , which is more faster than this ?  or do I need to apply some other method to do that ? 



0 Kudos
Message 3 of 5
(4,392 Views)

@aajjf wrote:
         Now we need to create sample programs using Labview. Using the Call Library Function Node I created subvi's for our DLL functions. Our capturing function output the image data as 1D array.  As I mentions earlier, I used DrawFlattenedPixmap.vi and picture control to display the image data. But the speed seams to be around 10 frames per second only. Is there any other method to display the image data in Labview , which is more faster than this ?  or do I need to apply some other method to do that ? 

If you want speed, then don't use picture control.  IMAQ might worth to try.

You can always call a C dll, use the dll the create a window, and draw the image on it.

George Zou

http://gtoolbox.yeah.net

 

George Zou
0 Kudos
Message 4 of 5
(4,373 Views)

> If you want speed, then don't use picture control.

 

What about a picture control and speed--why not use it to display rapidly changing images?

0 Kudos
Message 5 of 5
(4,037 Views)