Skip to Main Content Skip to Search
Product Documentation

ssGetSimMode - Get the simulation mode of an S-Function block

Syntax

SS_SimMode ssGetSimMode(SimStruct *S)

Arguments

S

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

Returns

An enumerated value of type SS_SimMode.

Description

Use to query the simulation mode of the block represented by S. Possible return values are:

Languages

C, C++

Example

See the S-function vsfunc.c used in sfcndemo_vsfunc.mdl.

See Also

ssRTWGenIsModelReferenceRTWTarget, ssRTWGenIsModelReferenceSimTarget, ssRTWGenIsCodeGen, ssRTWGenIsAccelerator, ssIsExternalSim, ssGetSolverName

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS