LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FTP PUT file - remote path

Hi all,
 
I want to use  FTP PUT file function for one of my application.
I am writing a binary file from my PC to the hardware memory.
I want to know , what input should be wired to remote path.
Because in this case, the memory is not divided into drives.
Presenty I am not able to perform the operation from LabVIEW.
 
 
If I am using Windows command prompt, I give put (filename) command after opening the FTP session.It is working fine also.
 
SajK
0 Kudos
Message 1 of 6
(4,997 Views)
Hi SajK,

Do you have the "NI internet toolkit", if not, I'm sory I can't help, but if yes a few weeks ago I developped a small utilitary that can copy file form/to a Windows based PC to an RT target through FTP. It is not difficult.

If you have the toolkit, I'll try to find and post a few VIs

Regards

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 6
(4,989 Views)
If I remember well, you have to put the full path in"target file", I mean not just the path of the folder you want to pute the file in but "folder/file_name"
😉

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 3 of 6
(4,990 Views)

Hi TiTou,

Thank you for the reply.

I am having internet tool kit. Your example programs will be useful for me.So kindly send it.

Still I am not clear how to give the remote path if I am writing to a ROM of limited size.(may 5MB size).

SajK

0 Kudos
Message 4 of 6
(4,986 Views)
to be clear with the path you need to enter, you should try out the NI example,

Go to Help >> Find example... >> and search for "FTP"

You'll find a very good (but a bit complicated) VI, with it you should be able to place some probes and see the remote path you have to enter.
Also, I will try to find the VI I made... sometimes I'm being messy Smiley Sad

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 5 of 6
(4,980 Views)
There we are... I didn't take time to re-try it, this was made to copy a folder and its whole sub-hierarchy to an ftp target so you might have to go to see in the sub vis to see how it works.

Tell me if you need more comments on the code 😉

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 6 of 6
(4,976 Views)