MATLAB Answers

How to use C Caller Block?

5 views (last 30 days)
Elena P
Elena P on 30 Jun 2020
Answered: Anmol Dhiman on 3 Jul 2020
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.


Sign in to comment.

Answers (1)

Anmol Dhiman
Anmol Dhiman on 3 Jul 2020
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.
Anmol Dhiman


Sign in to comment.



Community Treasure Hunt

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

Start Hunting!