| Contents | Index |
Set function name in model-specific C function prototype
setFunctionName(obj, fcnName, fcnType)
setFunctionName(obj, fcnName, fcnType) sets the step or initialization function name in the specified function control object.
| 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. |
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.

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 |