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.
已解决! 转到解答。
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...
What file structure do you see if you use a standalone ftp client to connect to the camera?
What is your local OS?
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)
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.
@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.
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.
@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.
So what is the FTP syntax? I am so confused right now...