主要内容

ssDeclareFunctionCaller

使用给定的函数原金宝app型声明Simulink函数调用。

语法

void ssDeclareFunctionCaller(SimStruct *S, char *fcnPrototype)

参数

年代

表示s -功能块的SimStruct。

fcnPrototype

函数调用者和Simulink函数之间的接口。金宝app

返回

没有返回值。

描述

char fcnPrototype[] = "y = timesttwo (u)";ssDeclareFunctionCaller(年代,fcnPrototype);

语言

C, c++

例子

该模型sfcndemo_金宝appsimulinkfunction_getset是一个s函数示例,它使用两个作用域的Simulink函数用get和set方法建模对象。金宝app

介绍了R2018a