Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Transferring a file (or data) to the PC using RT controller

I was looking for a solution all day for the question above, at the end I decided it is easier to save the data as a .txt file in the cRIO Controller memory and then send it to the PC using the FTP communication, I know how to use internet explorer, windows or any other FTP clients to copy the data, but what I want is to use the RT-programming to make the controller save the data to my PC. And using the RT controller it self to do it, which means no labview will run on the PC. (I did run the FTP example on the PC and it works fine but I want to run in in the RT-controller) does anyone know how I can do this?

If not what is the alternative way of doing so? Basically I am reading data from the I/O modules and making the a meaningful values and then save them as an Excel data to a .txt file.

 

0 Kudos
Message 1 of 4
(4,716 Views)

Sorry, I should have read your post better, your trying to go the other direction... RT 2 Host.

 

I've been using WebDrive for quite some time. This exposes RT targets as a drive letter. Works great and is very reliable for FTP with RT devices.  Just make sure to turn off the cache.

 

http://www.webdrive.com/

0 Kudos
Message 2 of 4
(4,715 Views)

Dear Sir,

 

could u plz send me a demo or example that how to save data file in the Sbrio and can be retreive by the ftp

0 Kudos
Message 3 of 4
(4,441 Views)

The solution is that there are FTP client VIs you can use in the code on the RT side (just like you'd use on the PC).  You need to install an FTP server on the PC (like FileZilla Server) - you didn't have to install an FTP server on the RT controller, we already do that for you by default, but you must do that on your PC if you want your controller to FTP to the PC.  Your RT code can use the general FTP client VIs (in the palette) and connect to your FTP server on your PC - the process is similar, but realize you will have different behaviors (relating to where things are saved to, the FTP server won't give open access to your PC like we do on the RT controller).  

 

You can reference the following links:

https://decibel.ni.com/content/docs/DOC-15379

http://digital.ni.com/public.nsf/allkb/9A004CF5241F3CB68625779E004EE159?OpenDocument

 

-Danny

0 Kudos
Message 4 of 4
(4,425 Views)