LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create a zip file with LabVIEW?

I would like to compress my data (ASCII format) to an archive.
I use LVZlib.vi to compress and decompress data but I would like to be able to read the output file with a software archiver such as PowerArchiver/WinZIP.
Someone knows how I can create a file compatible with zip or gz standard format, thanks !
0 Kudos
Message 1 of 10
(7,908 Views)
Hello benjamin,

one way could be to use a DOS shell command via "System Exec". Something like "RAR a test.rar asciidata*.txt" (or lha or gzip or ...).

Hope this helps,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 10
(7,895 Views)
Yes but I have to install a special archiver (with ms-dos ommand line ability such as pkzip,arc,rar,arj...) on the computer where I install my LV application.
0 Kudos
Message 3 of 10
(7,887 Views)
"OpenG zip tools" may help
refer to http://www.openg.org for more info.
0 Kudos
Message 4 of 10
(7,881 Views)
Benjamin,
you have a comandline option with Winzip (9?)
here is what I found in WinZip 9.0 help:
'The WinZip® Command Line Support Add-On lets you use WinZip's power within batch files, macros, and other situations where you have a specific task and would prefer to accomplish it quickly or automatically, without using the usual WinZip graphical user interface.

A copy of the WinZip Command Line Support Add-On is available from the Web page http://www.winzip.com/wzcline.cgi.
'
that gives you all the option with the exec command line
Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 10
(7,877 Views)
>> Yes but I have to install a special archiver (with ms-dos ommand line ability
>> such as pkzip,arc,rar,arj...) on the computer where I install my LV application.

Search for "gnu tools for windows" and get zip.exe, gzip.exe, bzip2.exe and others (even the source, if you like). These are about 50kB files that run in place (no installation) - easy to include in a distributed app. Oh, since I'm logged in I'll attach a couple, though I don't have the source on this machine).
0 Kudos
Message 6 of 10
(7,859 Views)
http://unxutils.sourceforge.net/
0 Kudos
Message 7 of 10
(7,857 Views)
Ok, I will use these little EXE files.

OpenG may be a good alternative too but the client installer doesn't works on my computer (perhaps a problem with the proxy of my company). I don't understand the principle of OPEN in this project : As sure the sources are open and free but I can't obtain them - the client-server interface is so close and so restrictive! Why, they doesn't use a principle like SourceForge???

Thanks 4 your help!
0 Kudos
Message 8 of 10
(7,839 Views)
Benjamin, you can download OpenG tools from this link
http://sourceforge.net/projects/opengtoolkit/


Cheers
Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 9 of 10
(7,836 Views)
Oh very nice !!!!
I can download all the packages without using the client interface 😉
0 Kudos
Message 10 of 10
(7,834 Views)