LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unzip.vi only works with 1-internal file, error2 with multiple even in raw form.

I've attempted to use the LabView unzip tool with several different meathods & I can only get it to work when there's only one file in the zip file. Multiple files continually cause an error in the VI, even when using raw LabView example code/tools. The first file does get unzipped in the specified folder before the error. Error 2 occurred at System Exec.vi. Command was "touch 08131333062007 "Chamber 1.ted"",LabVIEW:  Memory is full.
Message 1 of 15
(5,232 Views)
Hello SyMelf,

Please review these two documents and let me know if this resolves your issue.

Error 2 (Memory Full) When Using the System Exec VI.
http://digital.ni.com/public.nsf/websearch/EA1600EBA422E97286256AA20073C616?OpenDocument

System Exec.vi --> strange behavior?
http://forums.ni.com/ni/board/message?board.id=170&message.id=145190&requireLogin=False

Best Regards,
Juan Galindo
Applications Engineer
National Instruments
0 Kudos
Message 2 of 15
(5,217 Views)

Thanks for you response Juan & while this gives me some insight as to where the error is occurring it doesn't solve my problem. You can use the NI provided "Zip Tool.vi" to zip some files & then start a new blank VI & drop in the unzip tool & do nothing with it & run the Untiltled VI like that & it'll prompt for the file & as soon as you select the file...."Error 2", you can even double-click the unzip from the block diagram & use it that way.  I did this as a test to verify that what I'm doing wasn't causing the problem. My actual code uses the "File Dialog Express VI" in a flat sequence to first determine the zip file then the unzip-to location then runs the unzip function. I even get folders if zipped but only one file, no error if there's only one file, the error only occurs with multiple files.

It appears to be an access issue as if it gets the first file & then trys to re-access for the next. I could handle this if it had functions to close the reference but it doesn't. I did try to take the preview, turn it into an array, run it through a for-loop but there's no way to specify a specific file w/in a zip file.

Any thoughts?

0 Kudos
Message 3 of 15
(5,203 Views)
Can you tell me what version LabVIEW do you have?

I am going to try reproducing this. I will inform you what I find.

Regards,
Juan Galindo
Applications Engineer
National Instruments
0 Kudos
Message 4 of 15
(5,187 Views)
Sure, I'm running v8.5 on Windows Vista (ultimate & business) with admin privileges.
0 Kudos
Message 5 of 15
(5,175 Views)

Hello,

This sounds like it could be either a bad software installation or a compatibility problem with Vista.  On an XP machine, the Zip Tool.vi from the NI Example Finder has no problem compressing multiple files into a single .zip file.  I suggest you perform the following test:

1) Open Zip Tool.vi
2) Create a new folder on the desktop and name it Main
3) Paste two different files inside (ex: a .docx and a .pdf)
4) Click the browse button beside the Target Zip File control, navigate to the Desktop, then type in Main.zip for the File name and click OK
5) Click the browse button beside the Source File/Directory control, navigate to the Desktop, double-click the Main folder, then select Current Folder
6) Run Zip Tool.vi
7) Open the newly created Main.zip file and check for the presence of both files. 

On my XP machine, both files are present.  Please reply with the results from this test.

Best Regards,
T. McCarty 

0 Kudos
Message 6 of 15
(5,155 Views)
His problem is unzipping, not zipping.  It is not an issue with Vista, as I just did it with XP.  I used the attached zip file, whihc was posted by another user of the forum in the past, and I see the same issue as the original poster.  It unzips the first file, and generates an error.
0 Kudos
Message 7 of 15
(5,151 Views)
I'm actually seeing errors in ZIP files with 1 file, too.

I have tried zip files created via WinZIP and using the ZIP VIs in LabVIEW with the same results.
0 Kudos
Message 8 of 15
(5,147 Views)

Hello,

This was reported to R&D (CAR ID 4EH8KM42) for further investigation.  A possible workaround is posted here.  Thanks for the feedback!

Best Regards,
T. McCarty

0 Kudos
Message 9 of 15
(5,119 Views)
Thanks, I did actually review the OpenG software before making this post. I'll wait until NI fixes the problem, the OpenG software is a LONG way to go for a very simple tool, maybe if we needed some of the other tools. We'll just deal w/it for now.
0 Kudos
Message 10 of 15
(5,114 Views)