| Writing S-Functions | ![]() |
Specify the number of run-time parameters created by this S-function.
Syntax
void ssSetNumRunTimeParams(S, int_T num)
Arguments
S
SimStruct representing an S-function block.
Description
Use this function in mdlSetWorkWidths to specify the number of run-time parameters created by this S-function.
Languages
See Also
mdlSetWorkWidths, ssGetNumRunTimeParams, ssSetRunTimeParamInfo
ssSetNumRWork
Purpose
Specify the size of a block's floating-point work vector.
Syntax
void ssSetNumRWork(SimStruct *S, int_T nRWork)
Arguments
S
SimStruct representing an S-function block.
Description
Use in mdlInitializeSizes to specify the number of real_T work vector elements as 0, a positive integer, or DYNAMICALLY_SIZED. If you specify DYNAMICALLY_SIZED, you can specify the true (positive integer) width in mdlSetWorkWidths, otherwise the width used is the width of the signal passing through the block.
Languages
See Also
ssSetNumIWork, ssSetNumPWork
| ssSetNumPWork | ssSetNumSampleTimes | ![]() |