| Contents | Index |
Create model-specific C prototype object
obj = RTW.ModelSpecificCPrototype
obj = RTW.ModelSpecificCPrototype creates a handle, obj, to an object of class RTW.ModelSpecificCPrototype.
| obj | Handle to model specific C prototype object. |
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)
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.
RTW.ModelSpecificCPrototype.addArgConf

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 |