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
| obj | Handle to a model-specific C prototype function control object
previously returned by obj = RTW.getFunctionSpecification(modelName). |
| fcnType | Optional string specifying which function name to get. Valid
strings are 'step' and 'init'.
If fcnType is not specified,
gets the step function name. |
Outputs
| fcnName | A 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
 | getFile (arxml.importer) | | getImplementationName (RTW.AutosarInterface) |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit