Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
4 ratings:
 4.25 out of 5     Rate this Document

Delete File from FTP Server using Internet Toolkit

Primary Software: LabVIEW Development Systems>>Professional Development System
Primary Software Version: 8.0
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Toolkits>>Internet Developers Toolkit

Problem: I am using LabVIEW 8.0 with Internet Toolkit version 6.0. How can I delete a file from an FTP server using the Internet Toolkit VIs?

Solution: LabVIEW Internet Toolkit contains a VI called FTP [DELE].VI that can be used to delete a file from an FTP server. To programmatically delete a file from an FTP server, wire the filepath and FTP session refnum to the FTP [DELE].VI. The error cluster returned by this VI reports any connection errors. However if there are any errors related to the file itself, like "file not found", the reply string output of FTP [DELE].VI returns this message, not the error cluster.

If you are using Internet Toolkit version 5.0, FTP [DELE].VI will be found in the low level FTP palette.

If you are using Internet Toolkit version 6.0, the FTP palette does not contain the FTP [DELE] .VI by default. It can be added to the palette from C:\Program Files\National Instruments\LabVIEW 8.0\vi.lib\addons\internet\ftp\ftp1.llb by editing palette views.
  1. Click on Edit Palette Sets under Tools»Advanced on the LabVIEW menu bar. Functions Palettes and three new windows will open: Functions, Controls, and Edit Controls and Functions Palette Set.
  2. In the Functions palette, navigate to Addons»Internet Toolkit»FTP palette.
  3. Right click in empty space within the palette and select Insert»Subpalette.
  4. Select "Link to an LLB" and click OK. Browse to C:\Program Files\National Instruments\LabVIEW 8.0\vi.lib\addons\internet\ftp\ and select ftp1.llb.
  5. Select Save Changes and exit and re-enter LabVIEW.


Related Links:

Attachments:





Report Date: 07/12/2005
Last Updated: 11/09/2005
Document ID: 3NBDKC4P

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit