08-02-2022 06:07 AM
08-02-2022 07:20 AM - edited 08-02-2022 07:26 AM
What do you mean with datasheet? They come with examples that show how they can be used. There is no manual of any sorts that describes each function in detail. And it requires some basic knowledge about LabVIEW programming and ZIP archive operation.
If all you want to do is create some ZIP file from a few data files, the LabVIEW provided ZIP archive functions are likely easier to use. They have some minimal documentation too. The OpenG ZIP library is a more involved library of functions that let you do a lot of different stuff and control the creation and extraction of a ZIP archive file in great detail, but with power comes responsibility and the requirement of knowledge. 🙂
It's open source too and anyone who would like to provide a comprehensive description in the form of a manual is very welcome to submit that for adding to a future release. 😀
08-03-2022 12:30 AM
I have zlib based data file and I want to use compression/decompression on it. For example Matlab has library ZMat for this:
https://www.mathworks.com/matlabcentral/fileexchange/71434-zmat
In Delphi I have ZLibEx Library that can handle it.
I cannot find library that can handle it in Labview. Any advice? Is this possible with OpenG ZLIB functions? I cannot figure it out, there isn't any example of decompression anywhere..
08-03-2022 03:26 AM
@AndrazS wrote:
I cannot find library that can handle it in Labview. Any advice? Is this possible with OpenG ZLIB functions? I cannot figure it out, there isn't any example of decompression anywhere..
You haven't really searched well then. 🙂
There are two easy ways to do that in LabVIEW:
- The NI ZIP functions (Functions Palette->Programming->File IO->Zip)
- The OpenG ZLIB library
The first is a minimalistic API to the LabVIEW internal ZLIB implementation. It does allow to create ZIP files, add files to it, and extract ZIP files into a local folder. For your problem this might be already enough.
The OpenG ZLIB library is much more elaborate and gives you access to a lot of low level functions. There is however a similar higher level API than what the NI library has. (It existed before NI decided to add the ZLIB library to LabVIEW and make a few of the internal functions available as LabVIEW VIs).
Basically the high level function ZLIB Extract All Files To Dir.vi is in itself pretty self explanatory:
If you want you can open it and look inside and see how it is implemented with lower level functions. And open those VIs too. Just be aware that you never should access any subVIs directly that do not have the icon with the grey background and green box on them. These VIs are considered private in the library and are not meant for direct user access, they can and have changed in the past their name, connector paine, specific connector terminal datatypes or have been completely removed for whatever reason. So if you start to use them in your own application it can potentially break if you upgrade to a newer version.