sscallsystemwithtid
调用功能通话子系统的更新和输出方法
句法
int_t sscallsystemwithtid(simStruct *s,int_t element,int_t tid)
参数
-
s
-
代表S功能块的SIMSTRUCT。
-
元素
-
输出端口元素的索引与功能通话子系统相对应。
-
tid
-
任务ID。
返回
一个int_t
1
如果成功;否则,0
。
描述
用于mdlOutputs
调用连接到s功能的功能通话子系统的更新和输出方法。调用语法是
if(!sscallsystemwithtid(s,元素,tid){ /*错误将通过Simulink Engine* / return报告;金宝app}
看实施具有S功能的功能通话子系统有关如何使用的更多信息sscallsystemwithtid
。
笔记
sscallsystemwithtid
只能根据设置启用参数时的状态功能通话子系统的扳机堵塞。如果函数通话子系统在启用后需要重置其状态,则S功能必须明确启用并使用功能通话子系统来使用
,,,,sssetexpliticfcssctrl
和ssenablesystemwithtid
。ssdisablesystemwithtid
语言
C,C ++
例子
请参阅S功能sfun_fcncall.c
。
在R2006a之前引入