主要内容

目标通信

R2026b
使用数据处理模块与目标通信

配置 Byte Pack、Byte Unpack、Byte Reversal、Protocol Encoder、Protocol Decoder 等数据处理模块,以与目标设备通信并确保数据完整性。

模块

Arduino Protocol EncoderProtocol EncoderEncode input data into a uint8 byte stream by specifying the packet structure
Arduino Protocol Decoder Block IconProtocol DecoderDecode a uint8 byte stream by specifying the packet structure
Byte Pack blockByte PackConvert input signals to 8-, 16-, or 32-bit vector
Byte Unpack blockByte UnpackUnpack 8-, 16-, or 32-bit input vector to multiple output vectors
Byte ReversalReverse little-endian data for big-endian processor
Idle Task blockIdle TaskCreate free-running task (自 R2024a 起)

精选示例