Calling C Code with nested structures with Simulink

I have to Call C Code (which I'm not allowed to modify) from a Simulink model. The Code relies heavily on nested structures as shown in the attached MWE.
example struct
typedef double* adjacent_p;
typedef double* opposite_p;
typedef struct {
adjacent_p a;
opposite_p b;
} triag_t;
I tried using Simulink.importExternalCTypes(), but get the following warning:
>> Simulink.importExternalCTypes('SimLinkMod')
Warning: 'triag_t' from file
'C:\[EDIT]\pythagoras.h'
is not imported. It has a field whose type is unsupported in Simulink.
Is there a possibility to make such a Code work in Simulink ?

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink Functions についてさらに検索

製品

リリース

R2019b

質問済み:

2021 年 6 月 2 日

編集済み:

2021 年 6 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by