LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Could not display bmp pictures on the front panel

On my LV5.1, I used the Read BMP File.vi to read my bmp file. I wired a file path to it. Then I wired the "flattened image data" to the Draw Flattened Pixmap.vi. From here, I wired the "new picture" to Picture.ctl. However, I could not get the image. What is the problem? Did i leave out any wiring? Please help.
0 Kudos
Message 1 of 3
(2,853 Views)
nkk;

Are you telling your vi where is the picture in your system 🙂 ?

I attached a simple example that read a bmp file and display it in the picture indicator. When you run your vi, a dialog box open from where you should select the bmp file. It also return the full path of the image.

For the different formats supported in LabVIEW, check the following example:

Reading from JPEG/PNG/BMP Images into a LabVIEW Picture Control

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 2 of 3
(2,853 Views)
Nkk,

You need to make 4 connections between "Read BMP File.vi" and "Draw
Flattened Pixmap.vi". Wire the following from Read... to Draw...:

depth to bit depth (8)
rect to rect
flattened image data to flattened pixmap data
color table to color table

That should do it.

Hope this helps.

Jim



"nkk" wrote in message
news:50650000000800000073320000-1005954886000@exchange.ni.com...
> On my LV5.1, I used the Read BMP File.vi to read my bmp file. I wired
> a file path to it. Then I wired the "flattened image data" to the
> Draw Flattened Pixmap.vi. From here, I wired the "new picture" to
> Picture.ctl. However, I could not get the image. What is the
> problem? Did i leave out any wiring? Please help.
0 Kudos
Message 3 of 3
(2,853 Views)