Main Content

ssRTWGenIsAccelerator

Determine if the model is running in Accelerator mode.

Syntax

boolean_T ssRTWGenIsAccelerator(SimStruct *S)

Arguments

S

SimStruct that represents anS-Functionblock.

Returns

的Boolean valuetrueif the model has compiled or is compiling for Accelerator mode simulation. Returnsfalseotherwise.

Description

Use this macro in an S-function to determine whether the model is currently simulating in Accelerator mode. If the model is being referenced in Accelerator mode, usessRTWGenIsModelReferenceSimTargetinstead.

Languages

C, C++

Version History

Introduced in R2008b