Validate model-specific C function prototype against Simulink model
Syntax
[status, msg]
= runValidation(obj)
Description
[status, msg]
= runValidation(obj) runs a
validation check of the specified model-specific C function prototype
against the ERT-based Simulink model to which it is attached.
Before calling this function, you must call either attachToModel, to attach a function prototype
to a loaded model, or RTW.getFunctionSpecification,
to get the handle to a function prototype previously attached to a
loaded model.
Inputs
| obj | Handle to a model-specific C prototype function control object
previously returned by obj = RTW.ModelSpecificCPrototype or obj =
RTW.getFunctionSpecification (modelName). |
Outputs
| status | True for a valid configuration; false otherwise. |
| msg | If status is
false, msg contains
a string explaining why the configuration is invalid. |
Alternatives
Click the Validate button in the Model
Interface dialog box to run a validation check of the specified model-specific
C function prototype against the ERT-based Simulink model to
which it is attached. 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
 | runValidation (RTW.ModelCPPVoidClass) | | setArgCategory (RTW.ModelCPPArgsClass) |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit