LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV 8.0 PDA Image Depth Error

Attached is an 8-bit image.  Why does the PDA Load Image File.vi in LV8.0 PocketPC module give me an image depth of 24 bit when its actually 8 bits?!!Smiley Indifferent
 
This is a complete shows-stopperSmiley Sad
0 Kudos
Message 1 of 23
(7,810 Views)
Sorry, forgot to attached the jpg file.
0 Kudos
Message 2 of 23
(7,797 Views)

Hello,

 

Are you sure that is an 8 bit image? Jpegs offer 8 bits per channel (red, green, blue) making the image 24 bits and not 8. When I opened the image in regular LabVIEW (not the PDA module) it says this is a 24 bit image as well. Hope this helps.

 

Cheers,

Chris J

0 Kudos
Message 3 of 23
(7,770 Views)

Yea, this is an 8-bit image.  This was created in Photoshop and when you open it up in regular LabVIEW, there is an option to use the 8 bit color table.  In the PDA module, you don't get that option.  Does anybody have another 8-bit image to confirm?

Thanks

Robert

0 Kudos
Message 4 of 23
(7,763 Views)
I loaded the jpg image in Windows Paint, saved it as an 8-bit bitmap and still get an image depth of 24  when run on the pocketPC moduleSmiley Indifferent
0 Kudos
Message 5 of 23
(7,763 Views)
So, do you think that it is a limitation of the PDA to convert every image to 24-bit (doubtful) or do you think it is LabVIEW?

Bob Young

0 Kudos
Message 6 of 23
(7,755 Views)
OK, more clues and info.  When converting the jpg file to a bitmap and using the PDA Read Bitmap File.vi, you get an image depth of 8.  However, using the PDA Load Image File.vi on the same bitmap image gives an image depth of 24.  So it looks like there is a PDA primitive bug in PDA Load Image File.vi.  Here is the help on that primitive:

Reads a JPEG file, GIF file, or BMP file and creates the picture that contains the image and the data necessary to display the image file in a picture control. Use the other Picture Functions VIs to append drawing instructions to the picture.



Well, from here it looks like an NI PDA module bug.  Can anybody else confirm?




0 Kudos
Message 7 of 23
(7,751 Views)
Robert,
 
You are right. The PDA Load Image function does not handle 8-bit images. A bug report (# 3WG8D7Z0 ) has been filed. Sorry for the inconvenience; the current workaround, as you mentioned, is to use the PDA Read BMP File function. Thank you for your feedback!
 
Diya
LabVIEW PDA R&D

Message Edited by Diya M on 04-17-2006 09:31 AM

Message 8 of 23
(7,598 Views)

Dear members.

I have tried to use load image file to but I can't load a 10KB JPG witch is expanded a 24bit 400x240 bitmap.
I always get the information that there is not enought memory available (Error code 2). If I try to use bmp
files of 288KB (3x400x240 = 288KB) there is no problem to load them.
Is there another explanation of this error? I am using Win CE 5 on a ARM based 300MHz Board with 32MB
FLASH and 32 MB RAM. The Kernel has a zize of 12MB and with this I have 11..20MB free RAM space.
The main problem is the huge amount for memory I need to load from the FLASH. This costs more than a
secound for such a BMP.
Is there a possibility that there is a missing kernel modul for the JPG uncompress or what does this error mean
exactly?

Yours with kind regards

          Martin Kunze

With kind regards

Martin Kunze

KDI Digital Instrumentation.com
e-mail: martin.kunze@digital-instrumentation.com
Tel: +49 (0)441 9490852
0 Kudos
Message 9 of 23
(7,558 Views)

Martin,

If your JPEG image is an 8-bit one, then it sounds like your issue is exactly the same one addressed in this post and by Diya from R&D. It is a known bug that is currently being investigated, so for now, try to avoid using 8-bit images and convert them to a different format!

Kind Regards,

E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 10 of 23
(7,534 Views)