Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop Embedded Coder   

getFunctionName - Class: RTW.ModelSpecificCPrototype
Package: RTW

Get function name from model-specific C function prototype

Syntax

fcnName = getFunctionName(obj, fcnType)

Description

fcnName = getFunctionName(obj, fcnType) gets the name of the step or initialize function described by the specified model-specific C function prototype.

Inputs

objHandle to a model-specific C prototype function control object previously returned by obj = RTW.getFunctionSpecification(modelName).
fcnTypeOptional string specifying which function name to get. Valid strings are 'step' and 'init'. If fcnType is not specified, gets the step function name.

Outputs

fcnNameA string specifying the name of the function described by the specified model-specific C function prototype.

Alternatives

Click the Get Default Configuration button in the Model Interface dialog box to get function names. See Model Specific C Prototypes View in the Real-Time Workshop Embedded Coder documentation.

See Also

Controlling Generation of Function Prototypes — Explains how to configure model function prototypes in generated code

  


Related Products & Applications

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

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