How to specify input arguments data type when using ssDeclareFunctionCaller?

1 回表示 (過去 30 日間)
Arian
Arian 2022 年 9 月 6 日
回答済み: Suman 2024 年 8 月 2 日
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

回答 (1 件)

Suman
Suman 2024 年 8 月 2 日
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.

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by