LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error : FTP file transfer from one PC using Filezilla Client to Server PC as Labview

Xin chào các bạn, mình đang gặp khó khăn khi chuyển FTP giữa 2 máy tính. Tôi đã tìm kiếm lỗi này trên diễn đàn nhưng tôi vẫn chưa giải quyết được vấn đề của mình.

Tôi đã có thể kết nối giữa 2 máy tính thông qua phần mềm Filezilla Client và Server. Hiện tại mình muốn chương trình LV nằm trên máy Server có thể lấy được file từ máy tính Cilent, mình đã sử dụng chức năng FTP Put File VI nhưng nó báo lỗi (ảnh & file đính kèm). Ai đã gặp trường hợp này có thể cho tôi một lời khuyên.
Cảm ơn.
Vu

Untitled.png

0 Kudos
Message 1 of 6
(4,272 Views)

The remote path is not the path as the server is using internally. Instead you start most likely with the root, which is simply an empty path. The local path on the server is not part of what you need to enter in the FTP request.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 6
(4,262 Views)

Hi Rolf,

I tried the way you say the above but it still doesn't work for me. Can you give me another advice. I am very sorry for not responding to your message immediately.

Download All
0 Kudos
Message 3 of 6
(4,220 Views)

I would guess, since you use the FTP Store Multiple.vi it tries to enumerate the files in the directory passed in as location to upload to the server. Only that path is obviously not a directory but a file, so the directory enumeration must fail on that.

 

Also to fully mimic the way you did with your command Filezilla test, you should use "/" as remote path. This is the root of the FTP server. But you really should be able to single step into the relevant VIs and find for yourself where things go wrong. It's not that hard.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 6
(4,196 Views)

Hi Rolf,

I found out the reason is because my vi is running on PC server, it cannot get file from cilent PC, I switch my device running on cilent PC then it works (send and receive). But it is not as my wish, I am looking for another way to do my problem without having to run VI on cilent PC.

Thank for reply

0 Kudos
Message 5 of 6
(4,191 Views)

FTP obviously only can provide you with files on the computer your FTP server is running and the FTP client only can access files on the computer it is running on. That's what FTP was designed for. It would seem that what you want to do is rather a file sharing problem, in that you need to make the directory on your computer available to the server. So you need to look into creating a share. Windows networking allows that, but you should probably consult with your network administrator if you are allowed to do that.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 6 of 6
(4,182 Views)