How do I use ssCallSimulinkFunction?

Good day,
I want to create an S-Function that calls one or more Simulink Function blocks. I found the function “ssCallSimulinkFunction”, but it’s unclear for me how to use it, specifically the execInArgs and execOutArgs arguments.
Can you provide an example of the use of ssCallSimulinkFunction() and how to define the execInArgs and execOutArgs arguments?
Thanks.

Respuestas (1)

Suman
Suman el 29 de Jul. de 2024

0 votos

Hi Arjan,
The execInArgs and execOutArgs are the inputs to the function being called. These are simply variables of type _ssFcnCallExecArgInfo which is a pointer to a struct type, on which you have to set the dataPtr and dataSizePtr. You can see this example here.

Categorías

Más información sobre Simulink Coder en Centro de ayuda y File Exchange.

Productos

Versión

R2021b

Preguntada:

el 3 de Mzo. de 2022

Respondida:

el 29 de Jul. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by