How to specify input arguments data type when using ssDeclareFunctionCaller?

ssDeclareFunctionCaller allows us to declare Simulink Funciton prototypes inside a S-Function that further could be invoked using ssCallSimulinkFunction.
My question is how the input&output arguments could be specified e.g., y = timestwo(u) in which u is uint16_T

Respuestas (1)

Hi Arian,
You can use the ssSetSimulinkFunctionArgDataType function to set the data types of function and the ssSetSimulinkFunctionArgDimensions function to set the argument's dimensions.

Categorías

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

Productos

Versión

R2020a

Preguntada:

el 6 de Sept. de 2022

Respondida:

el 2 de Ag. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by