LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Download from cRIO to PC

Solved!
Go to solution

Hello

 

I'm working to get some .csv files from a remote cRIO to my PC via FTP with FTP Get File.VI

 

In the first time that i've ran the code all things are ok and the file was successfully downloaded. Since that i've eliminated the file and tryied to get the file another time with more improved code a error appeared (error 7).

 

I have no idea what is wrong. Could someone help here?

 

 

André Simões
Work with LV2019 and cRIO since 2021
Download All
0 Kudos
Message 1 of 15
(1,566 Views)

Hi Simon,

 


@Simon_A wrote:

In the first time that i've ran the code all things are ok and the file was successfully downloaded. Since that i've eliminated the file and tryied to get the file another time with more improved code a error appeared (error 7).


In the "ok" case you write to folder "Desktop\TESTE", while in the "error" case you write to "Desktop\TEST"…

Best regards,
GerdW


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

Hello Gerdw.

Thanks to your reply. But in that cases I have this two folders... 

André Simões
Work with LV2019 and cRIO since 2021
0 Kudos
Message 3 of 15
(1,539 Views)

Hi Simon,

 


@Simon_A wrote:

Hello Gerdw.

Thanks to your reply. But in that cases I have this two folders... 


Then you need to check the path that leads to this error 7!

Use probes or (conditional) breakpoints - basic debugging…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 15
(1,532 Views)

ListFolder will list the files and folders from your directory C:\Events on your PC, not your cRIO...

 

If you want to know the files that reside on your cRIO inside the events-folder, then use "FTP Directory Listing.vi"

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 5 of 15
(1,527 Views)

Hello JensG69

 


@JensG69  escreveu:

ListFolder will list the files and folders from your directory C:\Events on your PC, not your cRIO...

 

If you want to know the files that reside on your cRIO inside the events-folder, then use "FTP Directory Listing.vi"


I think the problem is that i'm running this VI inside cRIO, when i'm running it inside my PC with fullpath and file name the download is perfect.

 

What i want is to download the files from cRIO to PC with the code in cRIO.

André Simões
Work with LV2019 and cRIO since 2021
0 Kudos
Message 6 of 15
(1,494 Views)

@GerdW  escreveu:

Then you need to check the path that leads to this error 7!

Use probes or (conditional) breakpoints - basic debugging…


Is the first step that i took, debugging...

But everything seems to be ok. The error output for file it's ok, but the output for the error is the problem. However the path that leeds to FTP Get File it's ok and the info that get in the vi it's correct...

André Simões
Work with LV2019 and cRIO since 2021
0 Kudos
Message 7 of 15
(1,493 Views)

Hi Simon,

 


@Simon_A wrote:

The error output for file it's ok, but the output for the error is the problem.


I don't understand that sentence…

 


@Simon_A wrote:

What i want is to download the files from cRIO to PC with the code in cRIO.


When you want to run that code in the cRIO then you want to upload files to the host computer, not download them…

 

Again: error 7 claims "missing file/path", so check all paths (again).

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 15
(1,489 Views)
Solution
Accepted by topic author Simon_A

Hi Simon,

 

like Gerd wrote, so you want to upload files!!!

 

1) Is a ftp-server running on your PC?

2) If you have an ftp-server running on your PC, you need to use "FTP Put File", not "FTP Get File". You need to use the IP-address of your PC to log into the PC from your cRIO.

 

Regards, Jens

Kudos are welcome...
Message 9 of 15
(1,482 Views)

@JensG69  escreveu:

 

like Gerd wrote, so you want to upload files!!!

 

1) Is a ftp-server running on your PC?

2) If you have an ftp-server running on your PC, you need to use "FTP Put File", not "FTP Get File". You need to use the IP-address of your PC to log into the PC from your cRIO.


Hello,

 

Yes it is a upload of files. I was confused and mixing the concept.

 

1) Yes.

2) Yep, i am testing and the result is ok, but error 7 appears one time, then i switched the paths and it's all ok and the upload it's done.

 

Thanks by your help!

André Simões
Work with LV2019 and cRIO since 2021
0 Kudos
Message 10 of 15
(1,472 Views)