09-16-2011 12:21 PM
Hi,
I've created a code that transfer files from a Robot Controller to a PC.
My code is working, I can see all the files in my computer and I don't have any error from LabVIEW, but the size of the files are not exactly the same.
We decided to compare the files (binary comparison) with UltraCompare and some bytes are not the same, which cause us big trouble.
I'm using LabVIEW 2010 SP1.
You can see in attachment the result from the UltraCompare Software, also the 2 files transfered with CoreFTP and with my LabVIEW code.
Any ideas why some bytes are not exactly the same?
Thank you
Stephanie
09-16-2011 12:29 PM - edited 09-16-2011 12:35 PM
Are you using binary mode or ASCII mode?
[Edit: after looking at the compare image I don't think the problem is the transfer mode. The only things that were changed were ASCII characters]
09-16-2011 01:34 PM - edited 09-16-2011 01:34 PM
You want to let you know that I'm using the Binary Mode
09-16-2011 01:40 PM
Is it possible to post the portion of your LabVIEW code that does the file transfer?
09-16-2011 02:06 PM
There you go,
I didn't put everything, but the FTP[RETR].vi is there.
Thank you for helping me.
Just by the way, not all files have different bytes. Some files are transfered correctly.
Stephanie
09-16-2011 03:31 PM
I cannot see anything wrong but I do not have the FTP VIs. Is that an addon from NI that you are using?
09-16-2011 04:55 PM - edited 09-16-2011 04:56 PM
The FTP VIs are part of the internet toolkit I believe.
The files you retrieved with CoreFTP correctly match the ones you uploaded? Also are all the differences single bits like in the pictures?
There's a file error line from the retrieve VI - do you ever see anything of note on it?
If you do all the transfers without using binary mode do you have the same issue?
Another, maybe better, option would be to use the retrieve multiple VI. This would let you wire the cluster you build in the second to last for loop straight to the VI instead of having to use the last for loop.
http://zone.ni.com/reference/en-XX/help/370014E-01/internetftp/ftp_retrieve_multiple/
Also I didn't see the close FTP session VI anywhere. You might make sure you're using it.
09-19-2011 07:57 AM
Yes Steve, you need to install a toolkit
Yes Wart, the files from CoreFTP match the one I've uploaded and Yes it's single bits difference.
No, there's no error, everything is supposed to be OK according to the VI output.
If I use the ASCII mode, it's worst! Some of my files are binary anyway.
OK I'll try the retrieve multiple VI.
Steve asked me to send the transfer VI, so I didn't put the Open and Close session. Do you need it to troubleshoot?
Thank you for your help
Stephanie