Skip to Main Content Skip to Search
Product Documentation

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.

Output Arguments

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 Configure Function Prototypes in the Embedded Coder documentation.

See Also

RTW.ModelSpecificCPrototype.addArgConf

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