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 Kommentare

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?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Weitere Antworten (0)

Kategorien

Mehr zu Simulink Coder finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2022a

Gefragt:

sy
am 31 Mai 2024

Beantwortet:

sy
am 2 Jun. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by