02-20-2009 07:02 AM
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
02-24-2009 01:11 AM
Hi
Any comment to this post?
I just find out that the bug is in LV8.6.1 too.
regards Bjarne
03-11-2009 07:58 AM
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.
03-11-2009 08:31 AM - edited 03-11-2009 08:34 AM
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