LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview crashes when creating large image files

I have a problem with Labview 6.0.2( I've tested evaluation version 7.0 too).

I'm constructing a very large image, for example: 4500x4500 pixels. Labview crashes when converting the pixture to a pixmap. The image is fully constructed on my screen (in a picture control), but when converting it to a pixmap (for saving the image in a known format (bmp, jpg, tiff)), Labview crashes.

I did some testing and when the number of pixels exceeded the limit of 2^24(16777216), the file 'image.cpp' crashes on line 1570. The vi to convert it to a pixmap is: P'icture to pixmap.vi'

Does someone know a workaround for this problem? Or is there a fix for it?

Thank you!
0 Kudos
Message 1 of 3
(2,740 Views)
I've tested this with the attached VI converting a picture with a resolution of 4750 x 4750 to a pixel map.

This VI did not crash LabVIEW 7.1. So it seems the problem is fixed in LabVIEW 7.1 could you verify that is indeed the VI that causes problems in LabVIEW 7.0.

The VI is saved for LabVIEW 7.0.

Kind regards,

Karsten
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,740 Views)
I've tested the 6i version of my VI in Labview 7.0 evalutation version. It raised an error but not the same error:

d:\lvworm\src\lvsource\compatexport.cpp(37) : DAbort: Called a routine not in the compatibility LVRT table
$Id: //labview/branches/Wormhole/dev/lvsource/compatexport.cpp#11 $
0x004BD4CB - LabVIEW_Eval + 0
0x0EB710D9 - lvs248 + 0
0x094C87A0 - + 0



So i replaced the picture VI's with the 7.0 evalutation version VI's, and it worked. It is now possible for me to construct very large image files!

I see no attached VI to test. But i guess it is also solved in Labview 7.0

I used this file to convert the picture to image data:
C:\Program Files\National Instruments\LabVIEW 7.0 Evaluation\vi.lib
\picture\pictutil.llb\Picture to Pixmap.vi

And this file to convert image data to bmp:
C:\Program Files\National Instruments\LabVIEW 7.0 Evaluation\vi.lib\picture\bmp.llb\Write BMP File.vi

I guess i have to write a workaround for this problem:
divide the picture in blocks of 4096 x 4096 and then merge the image data arrays of the bloks together.
0 Kudos
Message 3 of 3
(2,740 Views)