| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → xPC Target |
| Contents | Index |
| Learn more about xPC Target |
| On this page… |
|---|
The hardware environment consists of a host computer, target computer, I/O boards in the target computer, and a serial or network connection between the host and target computers. Knowing the different types of computers and I/O supported by the xPC Target software will help you to set up a development environment that meets your needs.
You can use any PC that runs a Windows platform supported by The MathWorks as the host PC. It must also contain a free serial port or an Ethernet adapter card. In addition, the host PC must contain at least a 3.5–inch floppy disk drive, CD drive, or ability to belong to a dedicated network.
The host PC can be one of the following:
Desktop PC
Notebook PC
For more details on the requirements of the host PC, see Host PC Requirements.
The xPC Target software supports up to 64 target PCs with one host. A target PC can be almost any PC compatible system with a 32-bit Intel® or AMD® processor (386 compatible or higher). It must also contain a free serial port or an Ethernet adapter card. In addition, the target PC must contain at least a 3.5–inch floppy disk drive, CD drive, or ability to belong to a dedicated network. Using the xPC Target Embedded Option software, you can transfer files from the 3.5-inch disk or CD to a hard disk or flash memory. Do not use a laptop PC as a target PC.
A target PC can be one of the following:
Desktop PC — This computer is booted from a special target boot disk or network boot image created by the xPC Target software.
When you boot the target PC from the target boot disk or network boot image, the xPC Target software uses the resources on the target PC (CPU, RAM, and serial port or network adapter) without changing the files already stored on the hard drive.
After you are done using your desktop computer as a target PC, you can reboot your computer without the target boot disk or network boot image and resume normal use of your desktop computer.
Industrial PC — This computer is booted from a special target boot disk or network boot image, or, using the xPC Target Embedded Option software, from a hard disk or flash memory.
When using an industrial target PC, you can select PC/104, PC/104+, CompactPCI, or single-board computer (SBC) hardware.
You do not need any special target hardware. However, the target PC must be a fully PC-compatible system and contain a serial port or an Ethernet controller compatible with the xPC Target software.
For more details on the requirements of the target PC, see Target PC Requirements.
The xPC Target product supports two connection and communication protocols between the host PC and the target PC: serial and network.
Serial — The host and target computers are connected directly with a serial cable using their RS-232 ports. This cable is wired as a null modem link that can be up to 5 meters long and with a transfer rate between 1200 and 115200 baud. A null modem cable is provided with the xPC Target software.

For detailed information on setting up the hardware and software for serial communication, see Serial Communication.
Network — The host and target computers are connected through a network. The network can be a LAN, the Internet, or a direct connection using a crossover Ethernet cable. Both the host and target computers are connected to the network with Ethernet adapter cards using the TCP/IP protocol for communication.
When using a network connection, the target PC can use the Ethernet adapter card provided with the xPC Target product or one of the supported cards. The data transfer rate can be 10 megabits/second, 100 megabits/second, or 1 gigabit/second. For a list of supported cards, see Hardware for Network Communication.

For detailed information on setting up the hardware and software for network communication, see Network 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.
The xPC Target product supports a wide range of third-party I/O boards. The list of supported I/O boards includes ISA, PCI, PC/104, PC/104+, and CompactPCI hardware. The drivers are represented by Simulink blocks. Your interaction with the drivers is through these Simulink blocks and the parameter dialog boxes. The MathWorks does not manufacture these boards.
Note You are responsible for taking necessary precautions and implementing safeguards when interfacing hardware with the xPC Target product. You are also solely responsible for the content of your models that controls such hardware. |
I/O board library — The I/O board library contains Simulink blocks for the xPC Target product. You drag and drop blocks from the I/O library and connect I/O drivers to your model the same way you would connect any standard Simulink block.
I/O support — The I/O device library supports approximately 300 standard boards. I/O boards plug into the target PC expansion bus, PC/104 stack, or industrial PC chassis. There is also support for modules that plug into IP or PMC carrier boards. The xPC Target block library supports the following I/O functions:
Analog input (A/D) and analog output (D/A) — Connect sensors and actuators to your target application.
Digital input and output — Connect to switches, on/off devices, and communicate information in parallel.
RS-232/422/485 support — Use the COM1 or COM2 ports for serial communication with external devices. You can also access multiple RS-232, RS-422, and RS-485 serial ports using Quatech® and Commtech devices. See Serial Communications Support in the xPC Target I/O Reference.
CAN support — You can use CAN-AC2, CAN-AC2-PCI, and CAN-AC2-104 boards from Softing® GmbH AG with xPC Target CAN blocks to interface with a CAN field bus network. This interface provides communication through a CAN network between target applications and remote sensors and actuators.
The xPC Target CAN blocks are compatible with CAN specifications 2.0A and 2.0B and use dynamic object mode. See CAN I/O Support and CAN I/O Support for FIFO in the xPC Target I/O Reference.
GPIB support — Special RS-232 drivers support communication with a GPIB control module from National Instruments® to external devices with a GPIB connector. See GPIB I/O Support in the xPC Target I/O Reference.
UDP support — Communicate with another system using the standard UDP/IP network protocol. See UDP I/O Support in the xPC Target I/O Reference.
Counter-Timers — Use the counter-timer blocks for measuring pulse and frequency with modulation applications.
Watchdog — Monitor an interrupt or memory location, and reset the computer if an application does not respond. See Access and Versalogic in the xPC Target I/O Reference.
Incremental encoder — Change motion into numerical information for determining position, direction of rotation, and velocity.
Shared memory — Use shared memory blocks with multiprocessing applications.
LVDT — Use the North Atlantic Industries, Inc. 73LD3, 76CL1, 76LD1, and 76CL1 boards with xPC Target LVDT blocks to work with LVDT applications.
ARINC-429 — Use the Condor Engineering CEI-X20 boards with xPC Target ARINC-429 blocks to interface with the ARINC 429 data bus.
MIL-STD-1553 — Use the Condor Engineering PCI-1553 and QPCI-1553 series boards with xPC Target MIL-STD-1553 blocks to interface with the MIL-STD-1553 data bus.
Audio — Use the audio blocks to work with audio applications. See General Standards PMC66-16AO16 and General Standards PMC-24DSI12 in the xPC Target I/O Reference.
Thermocouple — Use the Measurement Computing™ PCI-DAS-TC board with xPC Target thermocouple blocks to work with thermocouple applications.
For information on using specific I/O driver blocks and advanced I/O support, see the xPC Target I/O Reference.
![]() | xPC Target Features | Software Environment | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |