Specifications
Introduction to RS-232 Drivers
2-3
Introduction to RS-232 Drivers
xPC Target uses a model for supporting RS-232 I/O that includes both
Simulink blocks for the I/O drivers, and MATLAB structures for sequencing
messages and commands.
This section includes the following topics:
•
Hardware Connections for RS-232 — Connect the target PC to an RS-232
device.
•
Simulink Blocks for RS-232 — Add setup, send, send/receive, and receive
blocks to your Simulink model.
•
MATLAB Message Structures for RS-232 — Create message structures to
sequence instructions to and from the RS-232 device.
•
Host and Target PC Communication — Consider limitations to using
RS-232 for I/O on the target PC when using RS-232 communication between
the host PC and target PC.
Hardware Connections for RS-232
xPC Target 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. The target
PC is connected to an RS-232 device with a null modem cable.
RS 232
connection
Target PC
RS-232 Device