Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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.c used in sfcndemo_frame for an example that uses this function. Running this model requires a DSP System Toolbox™ license.

Introduced before R2006a

Was this topic helpful?