Products & Services Industries Academia Support User Community Company

Learn more about xPC Target   

Serial Drivers

Introduction

The xPC Target software interfaces the target PC to serial devices using either the COM1 or COM2 port of the main board, through Quatech® drivers, through Diamond Systems drivers, or through Commtech drivers.

The xPC Target software supports RS-232 I/O communication with the following:

For the target PC serial ports, the software can use these ports as the RS-232 I/O devices. You can initiate RS-232 communications with these ports and the accompanying xPC Target drivers.

The software also supports the following:

The xPC Target block library provides a set of functionally similar drivers for these boards. See RS-232/422/485 Simulink Block Reference for a description of the driver blocks that support the different protocols.

The xPC Target block library supplies two types of drivers to support RS-232 I/O communication, composite and obsolete:

Hardware Connections for RS-232

The xPC Target software supports serial communication with the COM1 and COM2 ports on the target PC.

Your target applications can use these RS-232 ports as I/O devices. Typically, the target PC is connected to an RS-232 device with a NULL modem cable. However, this depends on the DTE/DCE configuration of the devices, and you might not use a NULL modem cable.

Host and Target PC Communication

If the host PC and target PC are connected using serial communication, one COM port on the target PC is dedicated for communication with the host PC. You cannot use this COM port in your block diagram as an I/O device.

For example, if the target PC uses COM1 for the communication with the host PC, COM1 cannot be used by your block diagram. If you try to use COM1 as an I/O device in your block diagram, an error message is displayed. The error message appears when you attempt to build and download the target application. In this example, you must use COM2 as an I/O device in your block diagram.

If you are using TCP/IP as your host PC to target PC communications protocol, then you can use any of the COM ports for RS-232 I/O.

  


Related Products & Applications

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