ssGetSolverMode

Get the solver mode being used to solve the S-function

Syntax

SolverMode ssGetSolverMode(SimStruct *S)

Arguments

S

SimStruct representing an S-Function block or a Simulink® model.

Returns

One of

  • SOLVER_MODE_AUTO

  • SOLVER_MODE_SINGLETASKING

  • SOLVER_MODE_MULTITASKING

Description

Use this macro to get the solver mode for this S-function. 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

C, C++

Example

See the S-function sfun_frmunbuff.csfun_frmunbuff.c used in sfcndemo_framesfcndemo_frame for an example that uses this function. Running this model requires a DSP System Toolbox™ license.

Was this topic helpful?