Simulink如果通过外部.c文件来生成接口 If Simulink generates an interface through an external. c file

1 次查看(过去 30 天)
在非autosar的框架下,模型生成代码的接口这一步工作非常重要了呢。
Under the non-autosar framework, the work of model generation code interface is very important.
除过大家使用的全局变量之外,还有些人想使用枚举,或者结构体的方式来做接口。那我们应该如何制作相关接口呢?
In addition to the global variables we use, some people want to use enumeration or structure to make interfaces. How should we make relevant interfaces?

采纳的回答

Xiaoning.Wang
Xiaoning.Wang 2023-2-6
你可以尝试以下这种方法,是通过外部文件.h文件来生成相关的接口文件。
You can try the following method to generate the relevant interface file through the external file. h file.
help('Simulink.importExternalCTypes')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 AUTOSAR Blockset 的更多信息

产品


版本

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!