This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMS320F28027:Simulink SCI 发送可变大小数据

Guru**** 2539500 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/598532/tms320f28027-simulink-sci-transmit-variable-size-data

器件型号:TMS320F28027

您好!

我开发了一个简单代码、该代码每秒通过 SCI 传输两个字节(12、34、12、34、34等)。 它工作正常(请参阅1.jpg 及其生成的代码)。

但是、当要发送的数组长度不同时、会出现问题(请参阅2.jpg)。 根据 Simulink 的说法、"块支持可变大小的信号、但需要为其进行配置"。

我在 “Model Explorer (模型资源管理器)”窗口中选中了“Support variable size array (支持变大小数组)”框 我还检查了仿真/配置参数/代码生成/接口/可变大小信号

然而,这一问题尚未得到解决。

欢迎提出任何建议。

非常感谢大家的参与。