Filter löschen
Filter löschen

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

7 Ansichten (letzte 30 Tage)
在非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?

Akzeptierte Antwort

Xiaoning.Wang
Xiaoning.Wang am 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')

Weitere Antworten (0)

Kategorien

Mehr zu AUTOSAR Blockset finden Sie in Help Center und File Exchange

Produkte


Version

R2017b

Community Treasure Hunt

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

Start Hunting!