取消
显示结果 
搜索替代 
您的意思是: 

FTP Get File Help

已解决!
转到解答

Hi,

 

I'm trying to use FTP Get File to get an image from my NI1772C Smart Camera, but I can't get it to work. I think the problem is I don't really understand what I should put in the local path and remote path boxes. The image is being saved in the root directory (c:\), and the image name is Arcing.bmp, and I am trying to save it to my dev PC in the C:\FTP Share folder. So, can someone tell me EXACTLY what I need to put in the remote path and local path boxes? I have tried a trillion combinations and nothing works.

0 项奖励
1 条消息(共 13 条)
5,264 次查看

Tell you what, pick out one or two of those trillion combinations and tell us what you did and the errors that you got.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 项奖励
2 条消息(共 13 条)
5,250 次查看

What file structure do you see if you use a standalone ftp client to connect to the camera?

 

What is your local OS?

0 项奖励
3 条消息(共 13 条)
5,243 次查看

Hi Mike, 

 

Thanks for the reply. I used C:\Arcing.bmp as the remote path and C:\FTP Share\Arcing.bmp as the local path and got the 'file not found' error (code 15550 I think)

0 项奖励
4 条消息(共 13 条)
5,225 次查看

What is the embedded OS on the camera. Is it really windows?

0 项奖励
5 条消息(共 13 条)
5,211 次查看

I don't know, it doesn't say. I have no problem getting the files off of it in other ways, such as with FilleZilla, or just through the cmd console.

0 项奖励
6 条消息(共 13 条)
5,199 次查看
解答
接受人 mprevodnik

@mprevodnik wrote:

I don't know, it doesn't say. I have no problem getting the files off of it in other ways, such as with FilleZilla, or just through the cmd console.


It's very unlikely to be Windows, so don't expect C:\arcimg.bmp to work!!!!! FTP normally works with Unix file paths with a common root of / and it's very unlikely that the camera would dump all the images into the root directory. So you will have to find out the file structure of your camera and request a path that exists.

 

FTP also knows the LS command which lists the content of a directory. And PWD to return the Current Working Directory. Use CD to go to the next level! With these three you should be able to figure out what is the directory structure on your camera.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 项奖励
7 条消息(共 13 条)
5,183 次查看

I'm saving the images there with another VI ImaqWriteFile 2 and I used Windows style file paths, and it works perfectly, so that isn't the issue.

0 项奖励
8 条消息(共 13 条)
5,179 次查看

@mprevodnik wrote:

I'm saving the images there with another VI ImaqWriteFile 2 and I used Windows style file paths, and it works perfectly, so that isn't the issue.


ImaqWriteFile does not use FTP. It only can access locally mounted files. Your camera uses internally the Pharlap ETS system which uses Windows compatible paths. But FTP has a different path syntax and you have to follow that.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 项奖励
9 条消息(共 13 条)
5,171 次查看

So what is the FTP syntax? I am so confused right now...

0 项奖励
10 条消息(共 13 条)
5,165 次查看