Is it possible to call a simulink function from inside a S-function?

Hello,
in a project, I have a simulink function (with global acess) and a S-function generated from C-Code. Is is possible to call the simulink function from inside the S-Function? Can you tell me, how to do it?

回答 (1 件)

Jemima Pulipati
Jemima Pulipati 2020 年 7 月 7 日

0 投票

Hello,
Yes, Simulink Function can be called from S-Function with the help of system methods like ssDeclareFunctionCaller and ssCallSimulinkFunction.
You can refer to this documentation of Simulink Function Callers for more information.

この質問は閉じられています。

質問済み:

2020 年 3 月 4 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by