Writing S-Functions | ![]() ![]() |
Get the solver mode being used to solve the S-function.
Syntax
Arguments
S
SimStruct representing an S-Function block or a Simulink model.
Description
SOLVER_MODE_AUTO
SOLVER_MODE_SINGLETASKING
SOLVER_MODE_MULTITASKING
This macro can return SOLVER_MODE_AUTO
in mdlInitializeSizes. However, in mdlSetWorkWidths and any methods called after mdlSetWorkWidths
, solver mode is either SOLVER_MODE_SINGLETASKING
or SOLVER_MODE_MULTITASKING
.
Languages
See Also
ssGetSimMode, ssIsVariableStepSolver
![]() | ssGetSimMode | ssGetSolverName | ![]() |