xPC Target    

Environment Properties for Network Communication

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

After you have installed xPC Target, you can set the specific environment properties for your host and target computers. You must change these environment 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 Boot Floppy 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 the your C/C++ compiler.
  3. From the HostTargetComm list, select TCP/IP.
  1. The TCP/IP text boxes become active.

    You must enter the following properties with the correct values according to your LAN environment. Ask your system administrator for values to the following settings:

    You enter the following properties depending on your specific circumstances:

    The following properties are specific for the Ethernet card on your target PC:

  1. 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 documentation.

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


  Ethernet Card for an ISA-Bus Target Boot Disk