LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Zip Files 2GB limit

I created a VI where I collect images and then at the end try to zip the folder they are stored in. This works fine until 2GB when labview stops adding to the zip file and when it completes the zip file says it is corrupt.

 

I can collect images into a folder well beyond 2GB with no problems.

 

I basically copied labview's zip files example into my VI. The only difference is that instead of the user selecting the folder to zip I just send it the folder the images were stored in.

 

I have this issue in labview 8.6. I also have labview 2009 if this will help at all.

0 Kudos
Message 1 of 9
(5,607 Views)

You are probably running on a 32-bit system, which is why you're seeing this limitation. This is not a LabVIEW limitation, but a hardware/OS limitation.

 

EDIT: (Clicked that Post button too quickly) Basically, somewhere in the code there's a file pointer that's an I32, and there's the actual limitation.

Message Edited by smercurio_fc on 09-24-2009 11:57 AM
0 Kudos
Message 2 of 9
(5,600 Views)

In the original ZIP format design, it was limited to 2 Gbytes. Do you have a newer version of the program that works around this limitation?

0 Kudos
Message 3 of 9
(5,582 Views)
Do you know what version of the code fixed this? Is it something in the zip file example thats bad or was one of the zip blocks rewritten? I have labview 8.5, 8.6, and 2009 installed on the computer I wrote it on. I believe I wrote it in 2009. But on the computer I run the code on there is only labview 8.5 and 8.6 installed.
0 Kudos
Message 4 of 9
(5,558 Views)
It all depends on your library or program that you use. I do know that info-zip version 3.0, http://www.info-zip.org/Zip.html can do > 2Gbytes. As you can tell, there are many programs still limited to the 2 Gyte limit. You never did mention on how you generate the zip file. Do you do a system call to a program to execute the zip program?
0 Kudos
Message 5 of 9
(5,550 Views)
Based on what's been said I took it to mean the user is using the LabVIEW Zip utilities, though I'm not sure what library, if any, those use.
0 Kudos
Message 6 of 9
(5,541 Views)

Yes, I'd also say that the user try to use the labview zip-vi's.

I just tried to use them to but couldn't compress my 4+GB file. I even tried to do it on a Win7 64bit (with Labview 32bit).

 

Is there any workaround yet?

 

Yves

0 Kudos
Message 7 of 9
(5,367 Views)

I just tried to compress my 4+GB file in Win7 64bit with Labview 2009 64bit --> :smileysad:

 

Unfortunately it doesn't work.

Yves

0 Kudos
Message 8 of 9
(5,353 Views)

Ok. I found a workaround.

http://forums.ni.com/ni/board/message?board.id=170&message.id=109557&query.id=1358631#M109557

 

Obviously I shouldn't look for limitation instead of solutions.

Yves

Message 9 of 9
(5,341 Views)