Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop Embedded Coder   

setFunctionName - Class: RTW.ModelSpecificCPrototype
Package: RTW

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

objHandle to a model-specific C prototype function control object previously returned by obj = RTW.ModelSpecificCPrototype or obj = RTW.getFunctionSpecification(modelName).
fcnNameString specifying a new name for the function described by the function control object. The argument must be a valid C identifier.
fcnTypeOptional. 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

  


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