How to use C Caller block with C code having multiple functions ?
24 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
sanjay kumawat
le 30 Août 2021
Commenté : AKHILA
le 20 Août 2024
I want to use a C language code into simulink which has multiple functions in it. Can it be done by C Caller block.
0 commentaires
Réponse acceptée
Mark McBroom
le 14 Sep 2021
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 commentaires
Mark McBroom
le 19 Août 2024
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
le 20 Août 2024
Okay , thank you for clarifying my doubt. whether s function block can call 2 functions inside one block?
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Integrate C Code Using C Caller Blocks dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!