Main Content

ssSetNumSFcnParams

Specify the number of parameters that an S-Function block has

Syntax

int_T ssSetNumSFcnParams(SimStruct *S, int_T nSFcnParams)

Arguments

S

SimStruct that represents an S-Function block.

nSFcnParams

Number of parameters that S has.

Returns

The number of parameters specified in nSFcnParams.

Description

Use in mdlInitializeSizes to set the number of expected S-function parameters.

Languages

C, C++

Examples

See the S-function stvdtf.c used in sfcndemo_stvdtf.

Version History

Introduced before R2006a