Documentation

模型配置参数:代码生成接口

TheCode Generation>Interfacecategory includes parameters for configuring the interface of the generated code. These parameters require a金宝app®CODER™执照。基于ERT的目标可用的其他参数需要嵌入式编码器®执照。

On the Configuration Parameters dialog box, the following configuration parameters are on theCode Generation>Interface窗格。

Parameter 描述

Code replacement library

指定代码替换库代码生成器在为模型制作代码时使用的代码库。

共享代码放置

指定生成实用程序功能,导出数据类型定义的位置以及使用自定义存储类的导出数据声明。

Support: floating-point numbers

指定是否生成浮点数据和操作。

金宝app支持:非有限数字

Specify whether to generate non-finite data and operations on non-finite data.

Support: complex numbers

指定是否生成复杂的数据和操作。

Support: absolute time

Specify whether to generate and maintain integer counters for absolute and elapsed time values.

金宝app支持:连续时间

指定是否为使用连续时间的块生成代码。

Support: variable-size signals

指定是否为使用可变大小信号的模型生成代码。

Code interface packaging

选择生成的C或C ++代码接口的包装。

多实体代码错误诊断

在模型违反生成多实体代码的要求时,选择显示的诊断的严重性级别。

通过根级I/O AS

Control how root-level model input and output are passed to the reusable模型_stepfunction.

在实时模型数据结构中删除错误状态字段

Specify whether to log or monitor error status.

Configure Model Functions

Specify whether the code generator uses default模型_初始化模型_stepfunction prototypes or model-specific C prototypes.

参数可见性

指定是否将块参数结构生成上市,private, orprotecteddata member of the C++ model class.

Parameter access

Specify whether to generate access methods for block parameters for the C++ model class.

External I/O access 指定是否为C ++模型类生成词级I/O信号的访问方法。
配置C ++类接口 Customize the C++ class interface for your model code.

Generate C API for: signals

Generate C API data interface code with a signals structure.

Generate C API for: parameters

使用参数调整结构生成C API数据接口代码。

生成C API:状态

使用状态结构生成C API数据接口代码。

生成C API:根级I/O

Generate C API data interface code with a root-level I/O structure.

ASAP2 interface

为ASAP2数据接口生成代码。

外部模式

为外部模式数据接口生成代码。

运输层

指定通信的运输协议。

MEX文件论点

Specify arguments to pass to an external mode interface MEX-file for communicating with executing targets.

静态内存分配

外部模式通信的控制存储器缓冲区。

静态memory buffer size

Specify the memory buffer size for external mode communication.

这些配置参数在高级参数.

Parameter 描述

标准数学库

为执行环境指定标准数学库。验证您的编译器是否支持您要使用的库;金宝app否则会发生编译时错误。

C89/C90(ANSI)- ISO®/IEC 9899:1990 C标准数学库
C99(ISO)- ISO / IEC 9899:1999 C标准的数学库
C++03 (ISO)- ISO/IEC 14882:2003 C++ standard math library

金宝app支持非插入的s功能

指定是否为非插入的S函数生成代码。

Maximum word length

Specify a maximum word length, in bits, for which the code generation process generates system-defined multiword type definitions.

Multiword type definitions

指定是否将系统定义或用户定义的类型定义用于生成代码中的多字数据类型。

经典呼叫接口

指定是否在R2012A之前创建的模型中生成与GRT目标的主要程序模块兼容的模型函数调用。

使用动态内存分配进行模型初始化

控制生成的代码如何为模型数据分配内存。

单输出/更新功能

指定是否生成模型_stepfunction.

Terminate function required

指定是否生成模型_terminatefunction.

结合信号/状态结构

Specify whether to combine global block signals and global state data into one data structure in the generated code

MAT-file logging

指定垫子文件记录。

MAT-file variable name modifier

Select the text to add to MAT-file variable names.

现有共享代码(Embedded Coder)

Specify folder that contains existing shared code

Remove disable function(Embedded Coder)

删除该实例的无法到达的(死编码)实例禁用来自基于ERT的系统的生成代码的功能,包括模型引用层次结构。

Remove reset function(Embedded Coder)

删除该实例的无法到达的(死编码)实例重置来自基于ERT的系统的生成代码的功能,包括模型引用层次结构。

LUT object struct order for even spacing specification

Change the order of the fields in the generated structure for a lookup table object whose specification parameter is set to even spacing.

LUT对象结构订单的明确价值规范

更改查找表对象的生成结构中的字段顺序,其规范参数设置为显式值。

产生驱动器

Specify whether to generate a destructor for the C++ model class.

Internal data access

指定是否为内部数据结构生成访问方法,例如块I/O,DWork向量,运行时模型,零交叉和连续状态,以及C ++模型类。

内部数据可见性

指定是否生成内部数据结构,例如I/O,DWORD向量,运行时模型,零交叉和连续状态为上市,private, orprotectedC ++模型类的数据成员。

Use dynamic memory allocation for model block instantiation

Specify whether generated code uses the operator新的, during model object registration, to instantiate objects for referenced models configured with a C++ class interface.

Code replacement library

Create custom Code Replacement libraries using code replacement tool.

Ignore custom storage classes

指定是应用还是忽略自定义存储类。

忽略测试点信号

Specify allocation of memory buffers for test points.

以下参数高级参数很少使用,没有其他文档。

Parameter 描述
生成haredconstants

控制代码生成器是否使用共享常数和共享功能生成代码。默认为.离开关闭跨模型的共享常数,共享功能和子系统重用。

推断型培训

与遗产代码的兼容性tmwtypes.h, specify that the code generator creates a preprocessor directive#define_TMWTYPES_ inside rtwtypes.h

targetlibsuffix
角色向量-''

控制用于命名目标依赖库的后缀(例如,_target.lib或者_target.a)。如果指定,字符向量必须包括一个(。)。(对于生成的模型参考库,库的后缀默认为_rtwlib.lib上Windows®systems and_rtwlib.a上UNIX®系统。)。

不te

This parameter does not apply for model builds that use the toolchain approach, see库控制参数

目标发布
角色向量-''

控制预编译库的位置。如果未设置此参数,则代码生成器使用指定的位置rtwmakecfg.m.

IsERTTarget

指示当前选择的目标是否从ERT目标得出。

cppclassgencment

指示目标是否支持生成和配置C ++类接口到建模代码的能力。金宝app

ConcurrentExecutionCompliant

Indicates whether the target supports concurrent execution

USEToolChainInfocoument

Indicate a custom target is toolchain-compliant.

ModelStepFunctionPrototypeControlCompliant

Indicates whether the target supports the ability to control the function prototypes of initialize and step functions that are generated for a Simulink model.

ParmdlrefbuildCompliant

指示在构建包含参考模型的模型时,是否为平行构建配置了模型。

CompOptLevelCompliant
离开,

Set inselectCallback为了指示目标是否支持使用该目标的能力金宝app编译器优化级别参数以控制构建生成代码的编译器优化级别。

默认为离开for custom targets andfor targets provided with the金宝appSimulink编码器和嵌入式编码器产品。下载188bet金宝搏

Model Referencecommiant
角色向量-离开,
Set inselectCallback为了指示目标是否支持模型参考。金宝app
生成Fullheader

生成完整的标头,包括时间戳记。

对于ERT目标,此参数在Code Generation > Templates窗格。

The following parameters are for MathWorks use only.

Parameter 描述
ExtModeTesting 对于数学工作,仅使用。
ExtModeIntrfLevel 对于数学工作,仅使用。
Extmodemexfile 对于数学工作,仅使用。

相关话题

这个话题有帮助吗?