getPreview - Get model-specific C function prototype code preview

Syntax

preview = getPreview(obj, fcnType)

Arguments

obj

Handle to a model-specific C prototype function control object, such as a handle 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.

Returns

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

Description

The getPreview function gets the model-specific C function prototype code preview.

See Also

Controlling Model Function Prototypes in the Real-Time Workshop Embedded Coder documentation

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS