How to specify input arguments data type when using ssDeclareFunctionCaller?
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!