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
| obj | Handle to a model-specific C prototype function control object
previously returned by obj = RTW.getFunctionSpecification(modelName). |
| fcnType | Optional. String specifying which function to preview. Valid
strings are 'step' and 'init'.
If fcnType is not specified,
previews the step function. |
Outputs
| preview | String 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
 | getPortDefaultConf (RTW.AutosarInterface) | | getReportData (cgv.Config) |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit