RS-232 Serial Communication
The Simulink® Real-Time™ software supports RS-232 serial communication by using the serial ports on the target computer mainboard as the RS-232 I/O devices. You can initiate RS-232 communication with these serial ports and the accompanying Simulink Real-Time drivers.
The Simulink Real-Time block library supplies legacy drivers to support RS-232 communication (see RS-232 Legacy Drivers). The composite drivers support RS-232 communication in asynchronous binary mode. They provide a simple ASCII encode/decode for the send and receive RS-232 blocks.
These drivers are described as legacy because the library supports legacy RS-232 communications by using the RTOS resource manager. To use the Legacy Serial Read block and Legacy Serial Write block, set up the serial ports by using the Legacy Serial Setup block.
Serial Connections for RS-232
The Simulink Real-Time software supports serial communication by using the COM1 and COM2 ports on the target computer.
Your real-time applications can use these RS-232 ports as I/O devices. With the typical DTE/DCE configuration of the RS-232 device, the target computer is connected to the device with a null modem cable.