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

2 views (last 30 days)
在非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?

Accepted Answer

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

More Answers (0)

Categories

Find more on AUTOSAR Blockset in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!