xPC Target    

Environment Properties for Serial Communication

The xPC Target environment is defined by a group of properties. These properties give xPC Target information about the software and hardware products that it works with. You might change some of these properties often, while others you would change only rarely.

After you have installed xPC Target, you can set the environment properties for the host and target computers. You need to change these properties before you can build and download a target application:

  1. In the MATLAB Command Window, type
  1. The xPC Target Setup window opens.

    The xPC Target Setup window has two sections:

    If your license does not include the embedded option, the TargetBoot list is disabled (grayed-out) with BootFloppy as your only choice. With the xPC Target Embedded Option installed, you have the additional choices of DOSLoader and StandAlone.

  1. From the CCompiler list, select either VisualC or Watcom.
  2. In the CompilerPath box, enter the root path where you installed your
    C/C++ compiler.
  3. From the HostTargetComm list, select RS232.
  4. From the RS232HostPort list, select either COM1 or COM2 for the connection on the host PC. xPC Target automatically determines the COM port you use on the target computer.
  5. When you finish changing the properties, click the Update button.
  1. xPC Target updates the environment with the new properties.

You do not have to exit and restart MATLAB after making changes to the xPC Target environment, even if you change the communication between the host and target from RS232 to TCP/IP. However, you have to recreate the target boot disk, and rebuild the target application from the Simulink model.

For more information on the xPC Target Environment, see Software Environment in the xPC Target User Guide documentation.

Your next task is to create a target boot disk. See Target Boot Disk.


  Hardware for Serial Communication Network Communication