LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FTP from cRIO to host PC not working

Hello,

I have a VI that writes files to my cRIO 9074. I then need to get those files onto my PC. I want to do this running on cRIO (as opposed to from my computer) so that I can have a 'export file' button in the VI. I'm therefore using the 'Put File' FTP function, and have set up FileZilla as the FTP server on my PC, as delineated here: http://digital.ni.com/public.nsf/allkb/9A004CF5241F3CB68625779E004EE159

 

However, the file does not copy and I get an error message.

 

Details and annotated screen captures below.

 

Thank you for your help!

Elizabeth

 

  • I can do the reverse (running VI on computer, get or put files from/to the cRIO). However, I'd like to run this from the cRIO
  • If there's a way to call a VI on the computer from a VI running on the cRIO, that's also an acceptable solution
  • I can tell the cRIO is connected because I can access it via FTP from my computer
  • I've set up the FTP server with the default server (127.0.0.1), and user LABVIEW with the appropriate home directory etc., with read/write permissions
  • In the Put FIle VI, I have the host set as my computer's IP address, and the user again as LABVIEW
  • The error code I get is Error 1: TCP Write in NI_InternetTK_FTP_VIs.lvlib:FTP Command.vi:6->NI_InternetTK_FTP_VIs.lvlib:FTP [QUIT].vi->NI_InternetTK_FTP_VIs.lvlib:FTP Close Session.vi:3->NI_InternetTK_FTP_VIs.lvlib:FTP Put Multiple Files and Buffers.vi:2->NI_InternetTK_FTP_VIs.lvlib:FTP Put File.vi:1->RIO_FileExport.vi
0 Kudos
Message 1 of 3
(3,655 Views)

Just a guess but try changing the active/passive setting. Have you tried FTPing to the PC from another PC? Does that work?

0 Kudos
Message 2 of 3
(3,645 Views)

Hi,

Thanks for your reply. I've tried with both active and passive settings, and get the same result. I don't have another PC to ftp to this one to, unfortunately. Any other suggestions?

Thanks!

Elizabeth

0 Kudos
Message 3 of 3
(3,616 Views)