getPreview

Class: RTW.ModelCPPArgsClass
Package: RTW

Get model-specific C++ class interface step function prototype code preview

Syntax

preview = getPreview(obj)

Description

preview = getPreview(obj) gets a model-specific C++ step function prototype code preview.

Input Arguments

objHandle to a model-specific C++ class interface control object, such as a handle previously returned by obj = RTW.getClassInterfaceSpecification(modelName).

Output Arguments

previewCharacter vector specifying the prototype for the step function.

Alternatives

To preview a C++ class interface step function in the Simulink® Configuration Parameters graphical user interface, go to the Interface pane and click the Configure C++ Class Interface button. This button launches the Configure C++ class interface dialog box where you can preview the step function prototype for your model class. For more information, see Customize Generated C++ Class Interfaces.