主要内容

本页采用了机器翻译。点击此处可查看最新英文版本。

串行端口 (RS232) 协议模块

R2026a
采用 RS-232 协议的串行通信

RS-232 是一种成熟的点对点串行通信协议。使用 RS-232 模块通过目标计算机内置的串行端口与其他设备进行通信。有关目标计算机串行端口的详细信息,请参阅制造商文档。

请参阅RS-232 串行通信。

模块

ASCII Encode blockASCII Encode将 Simulink 值转换为 uint8 字符向量
ASCII Decode blockASCII Decode将 ASCII 字符向量解析为 Simulink 值
ASCII Decode V2 blockASCII Decode V2将 ASCII 字符向量解析为 Simulink 值
FIFO Read blockFIFO ReadRead simple data streams
FIFO Write blockFIFO Write编写简单的数据流
FIFO Read HDRS blockFIFO Read HDRSRead multiple ASCII data streams according to header information
FIFO Read Binary blockFIFO Read Binary根据头信息读取多个二进制数据流
Modem Control blockModem Control控制串行端口上 RTS 和 DTR 输出线的状态
Modem Status blockModem Status调制解调器控制线的返回状态
Legacy Serial Read blockLegacy Serial Read读取底板串行通信的输入数据
Legacy Serial Setup blockLegacy Serial Setup设置基座串行通信
Legacy Serial Write blockLegacy Serial Write写入基板串行通信的输出数据
Legacy Serial Port blockLegacy Serial PortSend and receive data over mainboard baseboard serial port
Legacy Serial Port F blockLegacy Serial Port FSend and receive data over mainboard baseboard serial port with FIFO

主题

  • RS-232 串行通信

    了解用于目标计算机与串行设备之间串行通信的 Simulink® Real-Time™ 库。

  • RS-232 Legacy Drivers

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

精选示例