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
| obj | Handle 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 class | | rtw.pil.RtIOStreamApplicationFramework |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit