Using a VISA TCP/IP Socket to Log In to an FTP Server
Downloads
Filename: visa_ftp_login.vi
Requirements: View
In this example, we do the following:
1. Build a Visa Resource name of the form: tcpip::URL::PORT::socket
2. Typecast this string into a VISA Resource.
3. Use VISA Read and Write to send and receive according to the FTP protocol.
4. Close the connection using VISA Close to clean up.
This example is intended only to demonstrate VISA functionality and does not implement a complete FTP client.
Note: The VISA TCP/IP Socket is for communicating with instruments and not for true TCP/IP programming. One limitation is that the session much originate from VISA. For more control when programming TCP/IP, consider using the LabVIEW Enterprise Connectivity Toolset.
For more information about VISA Classes, refer to the VISA Programmer Reference Manual and the VISA User Manual.
Requirements
Filename: visa_ftp_login.vi
Software Requirements
Application Software: LabVIEW Full Development System 6.1
Language(s): LabVIEW
Hardware Requirements
Driver: NI-VISA 2.5
Reader Comments | Submit a comment »
Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
