LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Large JPEG on Front Panel?

I have a JPEG of about 300 KB. When I drag it onto a front panel and save the VI, the VI is about 2.4MB. Is there a way to decrease the file space taken up by these JPEG's on a VI? Why such an increase?
 
Michael 
0 Kudos
Message 1 of 5
(3,407 Views)


miguelc a écrit:
I have a JPEG of about 300 KB. When I drag it onto a front panel and save the VI, the VI is about 2.4MB. Is there a way to decrease the file space taken up by these JPEG's on a VI? Why such an increase?
 
Michael 


That's probably because LabVIEW stores the image as a bitmap. And your JPEG correspond probably to a very large image, heavily compressed. Try to resample the image at screen resolution and this will probably reduce stringly your memory foot print.
You should also know that screen update can be much slower when controls have to be updated over a background picture. A solution to reduce this problem (that you don't have yet...) is to divide the image in smaller chunks. That way LabVIEW is not obliged to redraw everything at each small screen change.
So while you are editing your image resolution, may be you should spend some additional time to cut it into smaller parts. 😉


Message Edité par chilly charly le 11-17-2007 01:04 AM
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 5
(3,388 Views)

What is your LabVIEW version? Some older versions were much less efficient with respect to file size.

Don't forget that newer version of LabVIEW allow you to specify the background image directly via the pane properties.


 
This also means that you don't need to include it with your VI, but can dynamically load it at program start.
 
 
 
0 Kudos
Message 3 of 5
(3,380 Views)

Ouch !

A new functionnality I missed ! Things like that happen while you are away from home !

Thanks Altenbach !

Chilly Charly    (aka CC)
0 Kudos
Message 4 of 5
(3,362 Views)

Thanks for the tips. I'm using 8.5; also tried 8.21. This wasn't a background image, so I simply retook pictures that were much smaller (64k) and now they're about 250K a piece on the FP, which works for me.

Michael



Message Edited by miguelc on 11-19-2007 09:25 AM
0 Kudos
Message 5 of 5
(3,327 Views)