LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Transferring zip file to pda

Hi all, I'm having this problem with transferring a zip file over to pda by tcp/ip. I have a zip program that extracts the contents. The zipped file can be transferred over, but all the contents are lost. There's no file to extract. I've done some troubleshooting also, on pc to pc and tried to copy the zip file into pda by active-sync. Both works fine. I just can't understand why.
 
Anyone have any idea? Thanks!
0 Kudos
Message 1 of 7
(12,355 Views)
Are you trying to do this transfer with the TCP/IP VIs in LabVIEW?
Daniel Eaton
National Instruments
Systems Engineering
Embedded and Industrial Control
0 Kudos
Message 2 of 7
(12,312 Views)
Yes i am doing it with TCP/IP protocol.
0 Kudos
Message 3 of 7
(12,280 Views)

Gotcha!  So, I assume the way you are transferring the data is by reading the zip file as a binary file, transferring the binary data over TCP/IP, then reassembling the data on the PDA.  My guess is the zip data is getting corrupted when you send it to your PDA or when you re-combine the data on the PDA side.  You said you were able to get the .zip file to transfer from PC to PC.  Was this with the same VIs that you are using to transfer data to the PDA?  Have you tried using buffered shared variables to transfer the data instead of TCP/IP?  Have you tried to create a small zip file that can be transferred all at once?  Also, what type of PDA do you have?  What version of LabVIEW PDA are you using?

 

Let me know!

 

Thanks!

 

Dan

Daniel Eaton
National Instruments
Systems Engineering
Embedded and Industrial Control
0 Kudos
Message 4 of 7
(12,147 Views)
Yeah, I'm using the Pocket PC 2003, and LabVIEW version 8.2. But if the file is corrupted, it wouldnt open at the server side. So i think it is not corrupted since i can open the file transferred over from the PDA to the server. Anyway, the problem was solved when another zip program is downloaded onto the PDA, though its an older version. It still works, rather than the newer version. Is there really no unzip function in LabVIEW that i can use it in the PDA part?
 
Thanks!
 
0 Kudos
Message 5 of 7
(12,091 Views)

I am glad you were able to get it working!  What was the ZIP software & version that worked and what was ZIP software & version that not working? 

Currently, you cannot unzip files in LabVIEW PDA.  That functionality was just added to LabVIEW in 8.2.  A workaround may be to write a C DLL that opens your zip program.  You can then call that DLL in LabVIEW PDA.

Hope this helps!

Dan

Daniel Eaton
National Instruments
Systems Engineering
Embedded and Industrial Control
0 Kudos
Message 6 of 7
(11,935 Views)
The current ZIP program we're using is the freeware, Team One's version 1.0. The ZIP program that is not working is the ezyUNZIP version 2.0.  Thanks!
0 Kudos
Message 7 of 7
(11,795 Views)