12-01-2010 02:47 PM
I'm trying to use the vi "FTP Get File.vi" (from the internet toolkit) to retrieve a specific file from an ftp site. Pn;y that for the moment. The FTP site is set up, and I checked and double checked that it was working fine (using filezilla) and that the stated directories and files are correctly spelled, etc. When I run the attached vi I get a darkened a darkened arrow icon indicating the program is running, No errors are generated. If I change ANYTHING on the remote path, such as an incorrect spelling of the name of the file I want to download, I do get an error and the program stops. Evidently it knows the file is there, but something is not working. I include in the attached vi the information including the password for the remote ftp site to make it easier to test although you will probably have to creat a local directory to recieve the copies file at "C:\TELEMEDICINE" or else edit the local path however you want. I will change the site pw, and perhaps the name after we get this figured out, but I figured it might make helping me easier for now. Possibly I am misunderatnding soemthing about how this vi is suppse to be used, but I have read the help docimentation, and everything similar I could find onf the web. Possibly it is something stupid.
Some other related information that may or may not help.
(0) I tried the FTP browser vi which is one of the example vis included with labview (do a search on "FTP" under examples), It worked great - just like filezilla, so the toolkit is working.
(1) The remote file is a .lvm data file, and is pretty small - 124kb. So if the file transfer is working it should take a very short time (as it does using filzilla).
(2) I did try letting the program run for many minutes on the outside chance something was very slow, but the local file never appeared anywhere, and the program was just frozen in RUN mode, but no errors ever so long as I have the remore path correct, as I stated above.
(3) I checked and made sure the security permissions were set (I'm only using windows firewall and security on the local computer). Labview had full permissions.
(4) I'm using labview 2009, but I got all the update disks. Not sure if I bothered to go through the full update on this computer (I thought I did but it still says 2009), Probavly doesn';tmatter either way.
12-01-2010 03:13 PM
Me again. On a lark I just checked the previous program this time using "FTP Get Buffer.vi" (another vi from the internet took kit). This vi has about the same syntax and the same thing happens under the same circumstances - continues to run with no data output. I'm beting if the right person reads this it will be obvious.
12-06-2010 07:18 PM
I suspect if you turn your firewall off, it should work for you.
12-06-2010 07:21 PM
No. That was one of the very first first things I tried. I does sound like something like that, but not specifically that.
12-06-2010 07:30 PM
The best thing to do is open up an example from the example finder and replace the inputs. These things can be very pesky!!!
12-06-2010 07:53 PM
No, there are only 3 examples under FTP and none of them are helpful that way. Keep in mind I'm talking about a SINGLE NI VI. There are no other parts. It isn't a misprogram on my part - it works on other computers.
12-07-2010 03:26 PM
So the VI is working on other computers, but not on yours?
12-07-2010 03:34 PM
FTP VI help instructions don't explicitly tell you to name the destination path\filename.txt for example. If you just put a path, the VI runs, doesn't error but doesn't copy the file if a filename is not tacked on.
I learned this from another post of this issue regarding FTP VI....
12-07-2010 04:03 PM
I do specify the whole file path complete with name of the file and it extension (see original post attachment). Is that what you are referring to?
I suppose I should update with some more recent information here to save people some time. The problem is NOT solved at all, so I would still appreciate any info that may help. However we now know that the program works exactly the same, apparently, for me (on a VISTA machine and a Windows 7 machine) and for Frank from tech support. The program works sometimes, and then inexplicably stops working. The timings of these failure don't appear to be connected to anything we did - things stop working for a good while, but after doing nothing. For example while the computer is sleeping. I haven’t determined if the “freeze ups” happen on on different computers all at the same time. I’m working on that one.
So, the conclusion is that it must (used advisedly) be something related to the only common factors – either the ftp server on my web provider, or that the vis in question are not quite right and this only shows up now and then for some reason. I believe that I set everything up correctly on the ftp site I haven’t changed anything lately, and have used numerous FTP browsers, such as Filezilla with that site for a very long time (years) with no issues ever. It is hard to think of a locus for the source of the problem other than one of those two.
I'm planning to call the company serving my ftp site at some point, but what am I going to ask them other than if my ftp site is configured correctly? It says it is. It has always worked. It works using the labview example browser (which uses different vis), even when the "FTP Get file.vi" and FTP Get Buffer.vi" do not work at the same moment.
12-07-2010 04:23 PM
You already tried setting the file format "binary" TRUE right?