Products & Services Industries Academia Support User Community Company

Learn more about Real-Time Workshop Embedded Coder   

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.

Inputs

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.

Outputs

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 Real-Time Workshop Embedded Coder documentation.

See Also

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