Writing S-Functions | ![]() ![]() |
Get the absolute tolerances used by a model's variable-step solver.
Syntax
Arguments
S
SimStruct representing an S-Function block.
Description
Use in mdlStart
to get the absolute tolerances used by the variable-step solver for this simulation. Returns a pointer to an array that contains the tolerance for each continuous state.
Languages
Example
{ int isVarSolver = ssIsVariableStepSolver(S); if (isVarSolver) { real_T *absTol = ssGetAbsTol(S); int nCStates = ssGetNumContStates(S); absTol[0] = whatever_value; ... absTol[nCStates-1] = whatever_value; } }
See Also
ssGetStateAbsTol, ssIsVariableStepSolver
![]() | ssCallSystemWithTid | ssGetBlockReduction | ![]() |