How to use C Caller block with C code having multiple functions ?

17 次查看(过去 30 天)
I want to use a C language code into simulink which has multiple functions in it. Can it be done by C Caller block.

采纳的回答

Mark McBroom
Mark McBroom 2021-9-14
The C Caller block can only call one function. You can either use a seperate C-Caller block for each function, or write a wrapper C-function that calls multiple functions and then call that wrapper C-function from the C-Caller block.
  5 个评论
Mark McBroom
Mark McBroom 2024-8-19,10:49
The C Caller block can only call one function. You could use two C caller blocks, one for each function, and then place the 2 C Caller blocks inside a subsystem ... or you can use the C Function block and call both C functions from the single C Function block.
AKHILA
AKHILA 2024-8-20,9:20
Okay , thank you for clarifying my doubt. whether s function block can call 2 functions inside one block?

请先登录,再进行评论。

更多回答(0 个)

类别

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

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by