| xPC Target™ | ![]() |
| On this page… |
|---|
Network Communication Overview Advantages of Network Communication Hardware for Network Communication Ethernet Card Provided with the xPC Target™ Product |
Before you can create and run a target application, you need to set up the connection between the host and target computers. You can use either serial or network communication.
For serial communication, see Serial Communication.
A host-to-target connection using network TCP/IP communication has advantages over serial RS-232 communication:
Higher data throughput — Network communication using Ethernet can transfer data up to 100 Mbit/second instead of the maximum data transfer rate of 115 kBaud with serial communication.
Longer distances between host and target computer — By using repeaters and gateways you do not restrict the distance between your host and target computers to the length of a serial cable. Communication over the Internet is also possible.
This manual does not include information for installing network cards or the TCP/IP protocol on your host computer. For correct installation and setup of your network cards and the TCP/IP protocol, contact your system administrator.
You must install the following hardware before you install the xPC Target™ software and configure it for network communication:
Network adapter card — When using the product with TCP/IP, you must have a network adapter card correctly installed on both the host PC and the target PC. Connect the host and target computers with an unshielded twisted pair (UTP) cable to your (LAN). The target PC network adapter card must have a static IP address. The host PC network adapter card can have a Dynamic Host Configuration Protocol (DHCP) address. The host PC can be any computer on the network. When using the product with TCP/IP, you must configure the DHCP server to reserve all static IP addresses to prevent these addresses from being assigned to other systems.
You can also directly connect your computers. Use a crossover UTP cable with RJ45 connectors to connect them. Both computers must have static IP addresses. If the host PC has a second network adapter card, that card can have a DHCP address.
I/O boards — If you use I/O boards on your target PC, you need to install the boards correctly.
The MathWorks supplies a PCI bus Ethernet card with the xPC Target software for you to use in a desktop target PC. The following table will help to identify the card that was shipped with your software and the parameter you need to select in the xPC Target Explorer. Both cards support a data transfer rate of 100 megabits per second (Mb/s). Note that these cards are equivalent.
Board | Identification | Setup Parameter |
|---|---|---|
Intel® Pro/100 M | Intel Pro/100 M or Desktop Adapter | I82559 |
Intel Pro/100 S | Intel Pro/100 S or Desktop Adapter | I82559 |
If xPC Target Explorer is not already started, in the MATLAB® Command Window, type
xpcexplr
The xPC Target Explorer window opens.
In the xPC Target Explorer xPC Target Hierarchy pane, select the Communication node of the target PC for which you want to check the boot disk. For example, select the Communication node for TargetPC1.
If you cannot use the Ethernet card provided with the xPC Target product, see Ethernet Chip Families Supported by the xPC Target™ Product for your TCP/IP communication options.
If you do not want to use the Ethernet card provided with the xPC Target product, you can use your own Ethernet card. The xPC Target software supports Ethernet cards with the following data transfer rates:
100 Mbits/second
10 Mbits/second
1 Gigabit/second
These Ethernet cards must contain an approved Ethernet chip. The xPC Target product supports the following chip families for 100 Mbits/second Ethernet cards:
| Ethernet Chip Sets | Specific Chips | Select TCP/IP Target Driver Option |
|---|---|---|
Intel 8255X | Fast Ethernet controller chips and other chips in the Intel 8255X family, including I82559, I82559ER, I82562EM, I82562, I82551, I82551ER, I82562EZ and I82550. For example, the Intel Pro/100 M Ethernet card that ships with your xPC Target order contains the Intel 82551QM controller chip. Note, the Intel 82801 chip set includes an I82559 compatible Ethernet controller. | I82559 |
Intel I8254X | Fast Gigabit Ethernet controller chips and other chips in the Intel 8254X family. | I8254x |
AMD79C971 PCNET | Fast Ethernet controller chips and other chips in the AMD® 79C97x family. | RTLANCE |
Realtek RTL8139, RTL8139C, RTL8139C+ | The MathWorks has tested and verified Zonet ZEN3200 and AOpen AON-325. | R8139 |
3Com 3C90x | Excludes 3C905-TX board and 3C900-COMBO Etherlink XL | 3C90x |
National Semiconductor DP83815 | NS83815 | NS83815 |
The product supports 10 Mb/s Ethernet cards with the following chips:
| Ethernet Chip Sets | Specific Chips | Select TCP/IP Target Driver Option |
|---|---|---|
Novell Ethernet 2000 compatible family | NE2000 | NE2000 |
SMC LAN91C9X compatible family | SMC91C9X | SMC91C9X |
The following are cases where you might not be able to use the Ethernet card provided with the xPC Target product:
You do not have an available PCI slot in your target PC.
You do not have a PCI bus in your target PC.
You need to use an Ethernet card other than the card provided with the xPC Target product.
If one of the above cases applies, purchase one of the boards from the following list. These boards are compatible with the xPC Target product.
Board Type | Board Number | xPC Target Driver |
|---|---|---|
PCI | SMC EZ Card 10 SMC1208T | NE2000 |
SMC EZ Card 10 SMC1208BT | NE2000 | |
SMC EZ Card 10 SMC1208BTA | NE2000 | |
Intel PRO/100 S | I82559 | |
Intel PRO/100 M | I82559 | |
Zonet ZEN3200 | R8139 | |
AOpen AON-325 | R8139 | |
Boards compatible with 3C90x, except the 3Com 3C905-TX Fast EtherLink XL PCI board | 3C90x | |
Argon 10/100MB National Semiconductor DP83815 PCI Fast Ethernet Adapter | NS83815 | |
ISA | SMC EZ Card 10 SMC1660T | NE2000 |
SMC EZ Card 10 SMC1660BT | NE2000 | |
SMC EZ Card 10 SMC1660BTA | NE2000 | |
PC/104 | RealTime Devices USA CM202 | NE2000 |
WinSystems Inc. PCM-NE2000-16 (RJ45) | NE2000 | |
WinSystems Inc. PCM-NE2000-16-BNC | NE2000 | |
SBC | Versalogic VSBC-6 | SMC91C9X |
If your target PC has a PCI bus, The MathWorks recommends that you use an Ethernet card for the PCI bus. The PCI bus has a faster data transfer rate and requires minimal effort to configure. The MathWorks also supplies one PCI bus Ethernet card with the xPC Target software for your target PC.
To install the PCI bus Ethernet card supplied with the xPC Target software, use the following procedure:
If the target PC already has an unsupported Ethernet card, remove the card.
Plug the Ethernet card from The MathWorks into a free PCI bus slot.
Connect your target PC Ethernet card to your LAN using an unshielded twisted-pair cable.
Your next task is to set up the xPC Target environment for network communication. See Environment Properties for Network Communication.
Your target PC might not have an available PCI bus slot, or your target PC might not contain a PCI bus (older motherboards, passive ISA backplanes, or PC/104 computers). In these cases, you can use an Ethernet card for an ISA bus.
If you are using an ISA bus, you need to reserve, from the BIOS, an interrupt for this board.
The MathWorks does not provide an ISA bus board. For a list of known compatible network adapter cards, see Hardware for Network Communication.
To install an ISA bus Ethernet card, use the following procedure:
On your ISA bus card, assign an IRQ and I/O-port base address by moving the jumpers or switches on the card. Write down these settings, because you need to enter them in the xPC Target Explorer.
You should set the IRQ line to 11 and the I/O-port base address to around 0x300. If one of these hardware settings would lead to a conflict in your target PC, select another IRQ or I/O-port base address.
If the target PC already has an unsupported Ethernet card, remove the card. Plug the compatible network card into a free ISA bus slot.
Connect the target PC network card to your local area network (LAN) using a coaxial cable or an unshielded twisted-pair cable.
If you use an Ethernet card for an ISA bus within a target PC that has a PCI bus, you must reserve the chosen IRQ line number for the Ethernet card in the PCI BIOS. Refer to your BIOS setup documentation to set up the PCI BIOS.
Your next task is to set up the xPC Target environment for network communication. See 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 might change some of these properties often, while others you will rarely want to change.
After you have installed the xPC Target software, you can specify the environment properties for the host and target computers. Note that you must specify these properties before you can build and download a target application.
If xPC Target Explorer is not already started, in the MATLAB Command Window, type
xpcexplr
The xPC Target Explorer window opens.
xPC Target Explorer associates network communication environment properties with the target PC.
A target PC node named TargetPC1 appears
in the xPC Target Hierarchy, at the
same level as the Host PC node. It appears with
the icon
(note the X to denote that the host
PC is not connected to the target PC).
As necessary, repeat Environment Properties for Serial Communication and Environment Properties for Serial Communication for each additional target PC you want to add to your system.
Additional target PC nodes appear in the xPC Target Hierarchy. As you add other target PCs, the PC number is incremented. The following figure illustrates two target PC nodes.

In the xPC Target Explorer, expand a target PC node.
A Configuration node appears. Under this are nodes for Communication, Settings, and Appearance. The parameters for the target PC node are grouped in these categories.
The Communication Component pane appears to the right.
From the Host target communication list, select TcpIp.
The pane changes to one that contains only those parameters pertinent to network communication.
You must enter the network properties with the correct values according to your LAN environment. Ask your system administrator for values for these settings.
Target PC IP address — This is the IP address for your target PC. An example of an IP address is 192.168.0.10.
LAN subnet mask address — This is the subnet mask address of your LAN. An example of a subnet mask address is 255.255.255.0.
Alternatively, you can obtain the LAN subnet mask address from the Network Connections dialog box on your host PC. Depending on your Windows® platform, you can access this dialog box in a number of ways. For example, on a Windows XP Professional system, you can use this sequence:
Select Start > Settings > Control Panel, then double-click Network Connections.
Right-click Local Area Connection, then select Properties.
Select Internet Protocol (TCP/IP), then click Properties.
If your computers connect with a crossover cable, you might have a dialog box like the following. You can obtain your subnet mask address and TCP/IP gateway address from this dialog box.
Note The TCP/IP address is for your host PC, not your target PC. You still need to get the target PC TCP/IP address for your target PC from your system administrator. The default gateway address is blank in this dialog box. However, in the xPC Target Explorer, you must enter 255.255.255.255 for the gateway value in the TcpIp gateway address property. |

Optionally, enter the following properties, depending on your specific circumstances:
TcpIp target port — This property is set by default to 22222. This value should not cause any problems, because this number is higher than the reserved area (telnet, ftp, ...) and it is only relevant on the target PC. If necessary, you can change this property value to any value higher than 20000 and less than 65536.
TcpIp gateway address — This property is set by default to 255.255.255.255. This means that you do not use a gateway to connect to your target PC. If you connect your computers with a crossover cable, leave this property as 255.255.255.255.
If you communicate with the target PC from within your LAN, you might not need to define a gateway and change this setting.
If you communicate from a host PC located in a LAN different from your target PC, you need to define a gateway and enter its IP address. This is especially true if you want to work over the Internet. Ask your system administrator for the IP address of the appropriate gateway.
Enter the following properties specific to the Ethernet card on your target PC:
TcpIp target driver — From the list, select NE2000, SMC91C9X, I82559, RTLANCE, R8139, 3C90x, NS83815, or I8254x. This property is set by default to NE2000. For a crossover cable connection, select I82559.
TcpIp target bus type — This property is set by default to PCI. If TcpIp target bus type is set to PCI, then the properties TcpIp target ISA memory port and TcpIp target ISA IRQ number have no effect on TCP/IP communication and are disabled (grayed out). If you are using an ISA bus Ethernet card, set TcpIp target bus type to ISA and enter values for TcpIp ISA memory port and TcpIp target ISA IRQ number.
TcpIp target ISA memory port and TcpIp target ISA IRQ number — If you are using an ISA bus Ethernet card, you must enter values for the properties TcpIp target ISA memory port and TcpIp target ISA IRQ number. The values of these properties must correspond to the jumper settings or ROM settings on your ISA bus Ethernet card.
Repeat step 5 to 10 for any target PC for which you have a network connection between the host PC and target PC.
The xPC Target software updates the environment with new properties as you enter them.
The following figure illustrates the Communication Component pane for a network connection.

For more information on the xPC Target environment, see Software Environment and Demos in the xPC Target User's Guide.
Your next task is to create a target boot disk. See Target Boot Disk.
![]() | Serial Communication | Target Boot Disk | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |