Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop Embedded Coder   

attachToModel - Class: RTW.ModelSpecificCPrototype
Package: RTW

Attach model-specific C function prototype to loaded ERT-based Simulink model

Syntax

attachToModel(obj, modelName)

Description

attachToModel(obj, modelName) attaches a model-specific C function prototype to a loaded ERT-based Simulink model.

Inputs

objHandle to a model-specific C prototype function control object previously returned by obj = RTW.ModelSpecificCPrototype.
modelNameString specifying the name of a loaded ERT-based Simulink model to which the object is going to be attached.

Alternatives

Click the Configure Model Functions button on the Configuration Parameters > Real-Time Workshop > Interface pane for flexible control over the model function prototypes that are generated for your model. Once you validate and apply your changes, you can generate code based on your function prototype modifications. See Configuring Model Function Prototypes 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