Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop Embedded Coder   

RTW.ModelSpecificCPrototype - Class: RTW.ModelSpecificCPrototype
Package: RTW

Create model-specific C prototype object

Syntax

obj = RTW.ModelSpecificCPrototype

Description

obj = RTW.ModelSpecificCPrototype creates a handle, obj, to an object of class RTW.ModelSpecificCPrototype.

Outputs

objHandle to model specific C prototype object.

Examples

Create a function control object, a, and use it to add argument configuration information to the model:

% Open the rtwdemo_counter model and specify the System Target File
rtwdemo_counter
set_param(gcs,'SystemTargetFile','ert.tlc')

%% Create a function control object
a=RTW.ModelSpecificCPrototype

%% Add argument configuration information for Input and Output ports
addArgConf(a,'Input','Pointer','inputArg','const *')
addArgConf(a,'Output','Pointer','outputArg','none')

%% Attach the function control object to the model
attachToModel(a,gcs)

Alternatives

The Configure Model Functions button on the Interface pane of the Simulink Configuration Parameters dialog box launches the Model Interface dialog box, which provides you flexible control over the C function prototypes that are generated for your model. See Configuring Model Function Prototypes in the Real-Time Workshop Embedded Coder documentation.

See Also

RTW.ModelSpecificCPrototype.addArgConf
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