主要内容

重用 Data Store Read 和 Data Store Write 模块的缓冲区

除 Data Store Read 和 Data Store Write 模块的临时缓冲区

模型配置窗格: 代码生成 / 优化

描述

重用 Data Store Read 和 Data Store Write 模块的缓冲区参数指示代码生成器删除 Data Store ReadData Store Write 模块的临时缓冲区。尽可能直接使用 Data Store Memory 模块。

依赖关系

参数信号存储重用启用此参数。

设置

on (默认) | off
On

Embedded Coder® 尽可能直接从 Data Store Memory 模块读取并直接写入 Data Store Memory 模块。直接使用 Data Store Memory 模块可消除生成代码中的数据副本,节省 RAM 消耗量并提高代码执行速度。

Off

Embedded Coder 在 Data Store ReadData Store Write 模块的生成代码中插入缓冲区。

推荐的设置

应用情形设置
调试无影响
可追溯性Off
效率On
安全预警

无建议

编程用法

参数:OptimizeDataStoreBuffers
类型:字符向量
值:'on' | 'off'
默认值:'on'

版本历史记录

在 R2017a 中推出