主要内容

本页采用了机器翻译。点击此处可查看最新英文版本。

ssSetNumRunTimeParams

指定此 S-Function 创建的运行时参数的数量

语法

boolean_T ssSetNumRunTimeParams(SimStruct *S, int_T num)

参量

S

表示 S-Function 模块的 SimStruct。

num

运行时参数的数量。

描述

mdlSetWorkWidths 中使用此函数指定此 S-Function 创建的运行时参数的数量。有关详细信息,请参阅 Create and Update S-Function Run-Time Parameters

语言

C、C++

示例

请参阅 sfcndemo_runtime 中使用的 S-Function sfun_runtime2.c

版本历史记录

在 R2006a 之前推出