Skip to Main Content Skip to Search
Product Documentation

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.

Input Arguments

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 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