08-24-2021 11:18 AM - edited 08-24-2021 11:27 AM
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?
Solved! Go to Solution.
08-24-2021 12:40 PM
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"…
08-24-2021 01:32 PM
Hello Gerdw.
Thanks to your reply. But in that cases I have this two folders...
08-24-2021 02:22 PM
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…
08-24-2021 02:36 PM
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
08-25-2021 10:29 AM
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.
08-25-2021 10:30 AM
@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...
08-25-2021 11:19 AM
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).
08-25-2021 03:40 PM
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
08-26-2021 05:03 AM
@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!