主要内容

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

串行端口 (RS232) 协议模块

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

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

请参阅RS-232 串行通信

模块

ASCII EncodeSimulink 值转换为 uint8 字符向量
ASCII Decode将 ASCII 字符向量解析为 Simulink
ASCII Decode V2将 ASCII 字符向量解析为 Simulink
FIFO ReadRead simple data streams
FIFO Write编写简单的数据流
FIFO Read HDRSRead multiple ASCII data streams according to header information
FIFO Read Binary根据头信息读取多个二进制数据流
Modem Control控制串行端口上 RTS 和 DTR 输出线的状态
Modem Status调制解调器控制线的返回状态
Legacy Serial Read读取底板串行通信的输入数据
Legacy Serial Setup设置基座串行通信
Legacy Serial Write写入基板串行通信的输出数据
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

主题

  • RS-232 串行通信

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

  • RS-232 Legacy Drivers

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

精选示例