08-26-2021 06:02 AM
Hello GerdW
This is what i saw when running into a for loop to put the files in order to upload each one to the PC.
My code is this here:
I put some probes when debugging and the paths seems ok to me.
The path from probe 5 is delayed in 2 secs is that the problem? Can you see other problem that i dont see?
Many thanks
08-26-2021 07:00 AM
Hello Simon,
your VI does not make any sense...
You scan the directoy "C:\Users\..\Desktop\...."
Then you try to upload files from the system this VIs runs on from "C:\Events" to "C:\Users\...\Desktop"
RTFM of "FTP Put file", local path is the path to the file on the system the VI is currently running, that shall be uploaded. Remote path is a path on the target system you opened a connection to via FTP.
Regards, Jens
08-26-2021 08:00 AM - edited 08-26-2021 08:09 AM
Hello JensG69
Here i'm testing uploading a file from directoy "C:\Users\..\Desktop\...." in my pc to "C:\Events" on cRIO.
I can do it if i specified the file in a complete file, but when i'm searching for files to upload each one the VI send error 7 like in the image below.
when i put this code running everything is ok, but when i put a for loop to search files and create paths to upload the files the error appears, but is in the same logic...
08-27-2021 03:09 AM
Look at your wires and what gones into what connectors on the FTP vi.
Your loop test is wired wrong!
08-27-2021 03:40 AM
@Simon_A wrote:
Hello JensG69
Here i'm testing uploading a file from directoy "C:\Users\..\Desktop\...." in my pc to "C:\Events" on cRIO.
I can do it if i specified the file in a complete file, but when i'm searching for files to upload each one the VI send error 7 like in the image below.
when i put this code running everything is ok, but when i put a for loop to search files and create paths to upload the files the error appears, but is in the same logic...
Hello Simon,
the screenshot that you inlined is a download (FTP Get File !!!) from 10.111.111.69 to the system the VI is running on.
Please keep in mind:
- List Folder can only be performed on a directory on the system the VI runs on.
- local path on the FTP-VIs always is the path file on the system the VI runs on.
- remote path is the path on the system the FTP server is running.
- FTP Get File is a download from the remote system to your local system.
- FTP Put File is an upload from the local system to your remote system.
Now look at all of your upload pictures, you usually do mix up one of these points.
Regards, Jens