How to specify input arguments data type when using ssDeclareFunctionCaller?

1 vue (au cours des 30 derniers jours)
Arian
Arian le 6 Sep 2022
Réponse apportée : Suman le 2 Août 2024
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

Réponses (1)

Suman
Suman le 2 Août 2024
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.

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by