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 CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by