| Contents | Index |
Get model-specific C function prototype code preview
preview = getPreview(obj, fcnType)
preview = getPreview(obj, fcnType) gets the model-specific C function prototype code preview.
| 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. |
| preview | String specifying the function prototype for the step or initialization function. |
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.

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 |