LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FTP "PWD" and unescabe double quotes

HI

 

I am using LV8.2.1 and the internet toolkit.

There is a FTP function called "PWD"(print working directory) who I think got a bug.

It don't put out the working direktory.

It take the reply text ( ex: Current working directory is "fs")and use the subVI "unescabe double quotes.vi" to remove the quotes, but this subVI need to have a string where the hole text is surrounded with double qoutes.

The FTP "PWD" function send a string like this( ex: Current working directory is "fs") to the subVI and that result in an empty string out.

Take a look at the attached pictures.

 

regards Bjarne

Download All
0 Kudos
Message 1 of 4
(2,507 Views)

Hi 

Any comment to this post?

I just find out that the bug is in LV8.6.1 too.

 

regards Bjarne

0 Kudos
Message 2 of 4
(2,471 Views)

Hi Bjarne,

 

Is this VI called FTP Directory Listing VI in LabVIEW 8.6.1?

Could I get you to explain in little more detail why you think there is a bug in this VI? 

A code example that illustrates the erroneous behavior is always appreciated.

Regards,
Eirikur Runarsson
0 Kudos
Message 3 of 4
(2,378 Views)

Hi Bjarne,

 

what FTP server are you using? It seems your FTP server doesn't follow the protocol. The response to a "PWD" should be like this:

257 "/path/on/server" [is current directory.]
It should start with the 257 code, followed by the path surrounded by double quotes.

If the FTP server follows the protocol the PWD VI works just fine.

 

As a workaround, you can use the "reply string" output of the PWD VI and use a match pattern to find the portion string between double quotes.

 

Daniel

 

Message Edited by dan_u on 03-11-2009 02:34 PM
0 Kudos
Message 4 of 4
(2,372 Views)