Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

RS-232

Serial communication with RS-232/422/485 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. You can also use the blocks to connect to dedicated boards that are compatible with PCI-standard bus architectures, such as PCI, PXI®, and PC/104.

You can configure the blocks to support the following boards:

  • Serial ports on the target computer mainboard

  • Third-party Quatech® PCI boards manufactured by B&B Electronics (www.bb-elec.com)

  • Third-party Commtech PCI boards (fastcomproducts.com)

For detailed information about these boards, see the manufacturer documentation.

See RS-232 I/O Drivers.

Blocks

ASCII Encode/Decode (Composite) ASCII Encode/Decode
ASCII Decode V2 ASCII Decode V2
FIFO Read Binary (Composite) FIFO Read Binary
FIFO Read HDRS (Composite) FIFO Read HDRS block
FIFO Read/Write (Composite) FIFO Read/Write
RS-232/RS-422/RS-485 Send/Receive (Composite) RS-232/RS-422/RS-485 Send/Receive block
Modem Control (Composite) Modem Control block
Modem Status (Composite) Modem Status block
RS232 State (Composite) RS232 State block
RS-232/422/485 Board Setup (Commtech) and Interrupt Check (Quatech) (Composite) RS-232/422/485 Board Setup (Commtech) and Interrupt Check (Quatech) block
RS-232/422/485 Enable TX Interrupt (Composite) RS-232/422/485 Enable TX Interrupt block
RS-232/422/485 Filter Interrupt Reason (Composite) RS-232/422/485 Filter Interrupt Reason block
RS-232/422/485 Read Hardware FIFO (Composite) RS-232/422/485 Read Hardware FIFO block
RS-232/422/485 Read Int(errupt) Status (Composite) RS-232/422/485 Read Int(errupt) Status
RS-232/422/485 Setup (Composite) RS-232/422/485 Setup block
RS-232/422/485 Write Hardware FIFO (Composite) RS-232/422/485 Write Hardware FIFO block

Functions

fc422mexcalcbits Calculate parameter values for Fastcom 422/2-PCI board
macaddr Convert character vector-based MAC address to vector-based address

Topics

RS-232 I/O Drivers

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

RS-232/422/485 Drivers (Composite)

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

Featured Examples

Was this topic helpful?