How to use C Caller Block?

2 次查看(过去 30 天)
Elena P
Elena P 2020-6-30
Hello,
I have a min-max function, which I want to integrated in a Simulink model with a C Caller Block. The question is, can I save a variable inside a C Caller? Bc I want to calculate the mean of that min max value.

回答(1 个)

Anmol Dhiman
Anmol Dhiman 2020-7-3
Hi Elena,
C Caller block only supports models with no dynamic states and variables. To include dynamic states and variables in your model, see Implement C/C++ S-Functions.
Regards,
Anmol Dhiman

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by