xPC TargetBox Previous page   Next Page

Copying Files with MATLAB and FTP

As an alternative to transferring files to an xPC TargetBox using a DOS shell and FTP, you can use MATLAB.

After you build a stand-alone application, you can transfer the application and utility files to an xPC TargetBox:

  1. Boot the xPC TargetBox with the FTP server. See Booting xPC TargetBox with FTP Server.

  1. The system boots the FTP server.

  1. In the MATLAB Command Window, type

  1. The xPC TargetBox Setup dialog box opens.

  1. Enter information for a network connection. See Hardware for Network Communication.
  2. Transfer a stand-alone application and utility files to an xPC TargetBox. For example, if your application is xpcosc.rtb, type

  1. An FTP connection is established between the host PC and the xPC TargetBox. The application (xpcosc.rtb) and the utility files (autoexec.bat, xpcboot.com) are downloaded from <MATLAB current directory>\xpcosc_xpc_emb to the directory c:\work.

    If the download was successful, MATLAB displays a confirming message. Otherwise, MATLAB displays an error message.

  1. Run the target application. From the xPC TargetBox DOS prompt, type

  1. This file was created by the build process for a stand-alone application and includes the command xpcboot xpcosc.rtb. First the kernel is loaded, then the target application, and finally the target application is started.


Previous page  Copying Files with DOS and FTP Booting xPC TargetBox to DOS Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2010 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS