LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer a CSV file to cRIO

Hi,

 

I'm trying to read a CSV file store in the host computer from the cRIO. The file is just an array of numbers that should initialise an alarms array. As far as I understood from reading the examples and the posts here I need to use FTP.vi. I'm very confused about the Get and Put FTP vi´s. 

I guess for my case, the host terminal should be my host computer´s IP with the required credentials for user and password. The local path should be the path within windows for the Put.vi and within cRIO for Get.vi.

In the example in Networking/FTP/ I do not understand the "remote path" terminal role, I´ve no idea what these paths refer to. I guess they use a terminology that I do not know. Could anyone please clarify the use of these terminals?  

Many thanks in advance!

 

 

0 Kudos
Message 1 of 3
(1,098 Views)

Hi cobayatron,

 


@cobayatron wrote:

I'm trying to read a CSV file store in the host computer from the cRIO. The file is just an array of numbers that should initialise an alarms array. As far as I understood from reading the examples and the posts here I need to use FTP.vi.


What about the basic example projects coming with LabVIEW/Realtime which show how to communicate between host PC and your cRIO?

Why not use a host application on the PC which reads the CSV file and sends its data to the cRIO application?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(1,092 Views)

This feels like an odd architectural decision.  Why are you coupling the cRIO to the Host PC in a way that makes it so that it cannot run alone?

 

Wouldn't it make more sense to naturally host the file on the cRIO (making the FTP information the RIO information that has an active FTP server on it)?  When you want to make changes, you can do so from the PC and send them to the cRIO.  That both allows the cRIO to run without the Host as well as allows you to make changes from the host for future tests.

0 Kudos
Message 3 of 3
(1,019 Views)