LabVIEW Real-Time Module versions 7.0 and later include a File Transfer Utility that can be used to access your RT Target. This method helps you avoid the caching problem encountered when using web browsers. On Windows computers, you can find this utility in the Measurement and Automation Explorer (MAX). To open the utility, right-click on the desired RT Target under the Remote Systems list and choose File Transfer. Refer to related link below.
You could also use an third party FTP client utility. An example is FileZilla which is open source. Refer to the related link listed below.
See Also:
FileZilla
There are also ways in LabVIEW to programmatically access the FTP server of a LabVIEW Real-Time target.
The DataSocket Read function has the ability to read raw text, tabbed text, and .wav files from a FTP server. For more information on this, please refer to LabVIEW help manuals listed in the links below.
The LabVIEW Internet Developers Toolkit gives you the ability to send files or raw data to an FTP server as well as sending emails and adding security to your web-based applications. The example program linked below which is titled “Sending and Retrieving Files Programmatically through FTP” shows how to use the FTP VIs included in the toolkit. You can also perform windows system FTP transfers with system exec VI. Refer to the related link “Using the Windows system FTP utility from LabVIEW with the System Exec VI”.
See Also:
LabVIEW Help
You can run a native FTP client from the DOS command prompt on a Windows PC with the following commands:
To open the FTP client, navigate to start » run and type command. The following sequence illustrates how you can use the commands to access the FTP server of your RT target.
(Note: "w.x.y.z" represents the IP address of the RT target in this document.)
Command | Result |
ftp | Open a connection to the FTP server. |
open w.x.y.z | |
(username) | Enter your username and password here or hit <enter> twice if these security settings have not been applied. |
(password) | |
help | View a list of commands |
cd ni-rt/system/www | Change to the desired directory. |
dir | View the files present. |
get index.htm c:/index.htm | Copy the file. |
cd / | Change directories back to the root (c:/). |
cd d: | Change directories to the external compact flash. |
put c:/index.htm index.htm | Copy the file from the FTP client machine to the target |
dir | Verify the newly copied file |
cd c: | Change directories back to the internal compact flash or hard drive. |
quit | Disconnect from the FTP server. |
Although it is possible to use most web broswers to access FTP sites, it is not recommend since it they often do file caching.
If w.x.y.z is the IP address of your RT target,
ftp://username:password@w.x.y.z/