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
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
RS-232 Send/ReceiveSend and receive data over Mainboard Baseboard serial port
RS-232 Send/Receive FIFOSend and receive data over Mainboard Baseboard serial port with FIFO
Modem ControlControl state of RTS and DTR output lines on serial port
Modem StatusReturn state of modem control lines
RS232 StateMonitor board state information from send/receive block
ASCII Decode V2Parse ASCII character vector into Simulink values

Topics

RS-232 Serial Communication

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

RS-232 Composite Drivers

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

Featured Examples