ssGetSFcnParam - Get a parameter of an S-Function block
Syntax
const mxArray *ssGetSFcnParam(SimStruct *S, int_T index)
Arguments
- S
SimStruct representing an S-Function block.
- index
Index of the parameter to be returned.
Returns
A pointer (const mxArray *) to the value
of the S-function parameter specified by index.
Description
Use in any routine to access a parameter entered in the S-Function
Block Parameters dialog box, where index starts
at 0 and is less than ssGetSFcnParamsCount(S).
Languages
C, C++
Example
See the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/stvctf.c used
in sfcndemo_stvctf.mdl and
the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_atol.c used
in sfcndemo_sfun_atol.mdl.
See Also
ssGetSFcnParamsCount
 | ssGetSampleTime | | ssGetSFcnParamsCount |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit