文档

ssUpdateRunTimeParamData

更新运行时参数的值

语法

ssUpdateRunTimeParamData(SimStruct *S, int_T参数,void *data)

参数

年代

SimStruct表示一个S-Function块。

参数

运行时参数的索引。

数据

参数的新值。

描述

在s函数中使用这个宏mdlProcessParameters方法更新指定的运行时参数的值参数

语言

C, c++

例子

请看s函数sfun_runtime2.c而且sfun_runtime4.c,都用于sfcndemo_runtime

R2006a之前介绍