LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Download from cRIO to PC

Solved!
Go to solution

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.

 

Simon_A_0-1629975518524.png

 

My code is this here:

 

Simon_A_1-1629975589266.png

I put some probes when debugging and the paths seems ok to me.

 

Simon_A_2-1629975694120.png

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

 

André Simões
Work with LV2019 and cRIO since 2021
0 Kudos
Message 11 of 15
(689 Views)

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

Kudos are welcome...
0 Kudos
Message 12 of 15
(687 Views)

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.

Simon_A_0-1629982716388.png

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...

 

André Simões
Work with LV2019 and cRIO since 2021
0 Kudos
Message 13 of 15
(679 Views)

Look at your wires and what gones into what connectors on the FTP vi. 

 

Your loop test is wired wrong!

0 Kudos
Message 14 of 15
(665 Views)

@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.

Simon_A_0-1629982716388.png

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

 

 

Kudos are welcome...
0 Kudos
Message 15 of 15
(660 Views)