ssSetNumSFcnParams

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

Syntax

int_T ssSetNumSFcnParams(SimStruct *S, int_T nSFcnParams)

Arguments

S

SimStruct representing 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++

Example

See the S-function stvdtf.cstvdtf.c used in sfcndemo_stvdtfsfcndemo_stvdtf.

Was this topic helpful?