How to write customer struct in TLC file for inline SFunction C++?

I have already rebuilt my C++ code in SFunction, and use "mex xxxxxx.cpp xxxxx.cpp " to run normal.
Next, I want to transform this SFunction to inline SFunction, and meet some problems.
In my code, I use
"typedef struct
{
}PIDController;
"
A customer struct, and work well.
Now, I want to use it in tlc file, how to do it?
Thank you all!!!

3 个评论

Additional, this struct is init in mdlstart, and update in mdloutput.
Hello everyone, this is a simple PIDController S-Function, work well in mex and cannot work in inline mode.
Maybe there is some mistake in mine tlc file, can someon help me?

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Target Language Compiler 的更多信息

产品

版本

R2022a

提问:

sy
2024-5-31

回答:

sy
2024-6-2

Community Treasure Hunt

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

Start Hunting!

Translated by