Jump to content

Need Help to use ZLIB EXtract VI (OpenG ZIP Tool Kit)


Recommended Posts

Posted

Hello

 

I'm a beginner in Labview and I would like use some Vis in the OPenG ZIP Tool Library.

I would like being able to extract a file in an archive protected with a password and the possibility to overwrite it.

 

First, I have used the "ZLIB Extract All To Dir" Vi. It works fine except if the extracted file is already present.

There is no OverWrite Option possibilities for this Vi.

 

2nd, I wanted to try to use the "ZLIB Open Unzip + ZLIB Extract + ZLIB Close Unzip Archive"

However, I think I haven't understood the correct syntax to use the "ZLIB Extract" Vi.

There is no Example about his usage in Help.

On Target Path input, I have linked the Application Directory Constante (The place where I want to find the extracted file)

On The Internal Name input , If there is nothing linked, I have the n°7 error that appears.

If I link a string constante which countain the name of the unique file I want to extract, I have the n° 1059 Error that appears.

PS : In each Case, the file is not extracted. The correct password is also linked to the password input.

 

Is there anyone could help me about that ?

 

Kind Regards

Posted (edited)

1) ZLIB Get File

 

 

2) ZLIB Read Compressed File Block :

Error seems come from the "Open/Replace File" Vi

Could you explain me how permissions input works ?

 

Regards

 

 

post-33391-0-86962500-1366014698_thumb.p

post-33391-0-53171200-1366016084_thumb.p

Edited by ManWithNoName
Posted

It might be more helpful if you post both the zip file you want to extract and the code you created. Debugging from screen shots is feels so awkward that I simply refuse to spend any time on that.

 

Also make sure to post any VIs in 2011 or earlier. I don't have at the moment always access to a machine with 2012 installed.

 

One thing I see however is that you pass in the application directory to the target path. This should be the file path of the file you want to create! And if the filename is the same as the one in the ZIP archive (but watch out here as paths in an archive can be relative paths defining several directory levels) then you do not need to connect the internal name at all, as it will be extracted from the passed in target path.

 

If you had posted the VI and ZIP file in the beginning I could have run it and seen the problem immediately. Deducing such things from a screen shot is more difficult since there is no context help and all that available.

Posted (edited)

Thanks Bruce and Rolfk

 

I didn't think that we must specify also the full path and the file name. I have tried one of two method in each case but not all together.

 

Also Thanks for the tip.

 

Best Regards

Edited by ManWithNoName

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.