LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FTP transfer problem

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

 

0 Kudos
Message 1 of 8
(2,883 Views)

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]

=====================
LabVIEW 2012


0 Kudos
Message 2 of 8
(2,881 Views)

You want to let you know that I'm using the Binary Mode

0 Kudos
Message 3 of 8
(2,871 Views)

Is it possible to post the portion of your LabVIEW code that does the file transfer?

=====================
LabVIEW 2012


0 Kudos
Message 4 of 8
(2,866 Views)

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

0 Kudos
Message 5 of 8
(2,862 Views)

I cannot see anything wrong but I do not have the FTP VIs. Is that an addon from NI that you are using?

=====================
LabVIEW 2012


0 Kudos
Message 6 of 8
(2,858 Views)

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.

0 Kudos
Message 7 of 8
(2,850 Views)

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

0 Kudos
Message 8 of 8
(2,835 Views)