Set function name in model-specific C function prototype
Syntax
setFunctionName(obj, fcnName, fcnType)
Description
setFunctionName(obj, fcnName, fcnType) sets
the step or initialization function name in the specified function
control object.
Inputs
| obj | Handle to a model-specific C prototype function control object
previously returned by obj = RTW.ModelSpecificCPrototype or obj =
RTW.getFunctionSpecification(modelName). |
| fcnName | String specifying a new name for the function described by
the function control object. The argument must be a valid C identifier. |
| fcnType | Optional. String specifying which function to name. Valid strings
are 'step' and 'init'. If fcnType is
not specified, sets the step function name. |
Alternatives
Use the Initialize function name and Step
function name fields in the Model Interface dialog box
to specify 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
 | setFile (arxml.importer) | | setInitEventName (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