Skip to Main Content Skip to Search
Product Documentation

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.

Input Arguments

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.

Output Arguments

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 Embedded Coder documentation.

How To

  


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