Skip to Main Content Skip to Search
Product Documentation

runValidation - Class: RTW.ModelSpecificCPrototype
Package: RTW

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.

Input Arguments

objHandle to a model-specific C prototype function control object previously returned by obj = RTW.ModelSpecificCPrototype or obj = RTW.getFunctionSpecification (modelName).

Output Arguments

statusTrue for a valid configuration; false otherwise.
msgIf 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 Embedded Coder documentation.

How To

  


Related Products & Applications

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