Main Content

RS-232

Serial communication with RS-232 protocols

RS-232 is a mature point-to-point protocol for serial communication. Use the RS-232 blocks to communicate with other devices by using the serial ports built into the target computer. For detailed information about the target computer serial ports, see the manufacturer documentation.

See RS-232 Serial Communication.

Blocks

ASCII EncodeConvert Simulink values into uint8 character vector
ASCII DecodeParse ASCII character vector into Simulink values
ASCII Decode V2Parse ASCII character vector into Simulink values
FIFO ReadRead simple data streams
FIFO WriteWrite simple data streams
FIFO Read HDRSRead multiple ASCII data streams according to header information
FIFO Read BinaryRead multiple binary data streams according to header information
Modem ControlControl state of RTS and DTR output lines on serial port
Modem StatusReturn state of modem control lines
Legacy Serial ReadRead input data for baseboard serial communications
Legacy Serial SetupSetup baseboard serial communications
Legacy Serial WriteWrite output data for baseboard serial communications
Legacy Serial PortSend and receive data over Mainboard Baseboard serial port
Legacy Serial Port FSend and receive data over Mainboard Baseboard serial port with FIFO

Topics

RS-232 Serial Communication

Learn about the Simulink® Real-Time™ library for serial communication between target computers and serial devices.

RS-232 Legacy Drivers

To represent multiple serial devices, use composite Simulink Real-Time RS-232 mainboard driver blocks.

Featured Examples