Skip to Main Content Skip to Search
Product Documentation

getPreview - Class: RTW.ModelSpecificCPrototype
Package: RTW

Get model-specific C function prototype code preview

Syntax

preview = getPreview(obj, fcnType)

Description

preview = getPreview(obj, fcnType) gets the model-specific C function prototype code preview.

Input Arguments

objHandle to a model-specific C prototype function control object previously returned by obj = RTW.getFunctionSpecification(modelName).
fcnTypeOptional. String specifying which function to preview. Valid strings are 'step' and 'init'. If fcnType is not specified, previews the step function.

Output Arguments

previewString specifying the function prototype for the step or initialization function.

Alternatives

Use the Step function preview subpane in the Model Interface dialog box to preview how your step function prototype is interpreted in generated code. See Model Specific C Prototypes View in the Embedded Coder documentation.

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