Documentation Center

  • Trial Software
  • Product Updates

ssGetNumSFcnParams

Get the number of parameters that an S-Function block expects

Syntax

int_T ssGetNumSFcnParams(SimStruct *S)

Arguments

S

SimStruct representing an S-Function block.

Returns

An int_T value indicating the number of expected S-function parameters.

Description

Use to determine the number of parameters that S expects the user to enter.

    Tip   Use ssGetSFcnParamsCount to determine the number of parameters the user actually entered for S.

Languages

C, C++

Example

See the S-function stvctf.cstvctf.c used in sfcndemo_stvctfsfcndemo_stvctf and the S-function csfunc.ccsfunc.c used in sfcndemo_csfuncsfcndemo_csfunc.

Was this topic helpful?