12-10-2007 04:59 PM
12-11-2007 05:18 PM
12-12-2007 10:28 AM
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?
12-13-2007 10:21 PM
12-14-2007 09:37 AM
12-17-2007 04:28 PM
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
12-17-2007 04:39 PM
12-17-2007 04:56 PM
12-18-2007 09:10 AM
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
12-18-2007 09:17 AM