Skip to Main Content Skip to Search
Product Documentation

runValidation - Class: RTW.ModelCPPVoidClass
Package: RTW

Validate model-specific C++ encapsulation interface against Simulink model

Syntax

[status, msg] = runValidation(obj)

Description

[status, msg] = runValidation(obj) runs a validation check of the specified model-specific C++ encapsulation interface 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.getEncapsulationInterfaceSpecification, to get the handle to a function prototype previously attached to a loaded model.

Input Arguments

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

Output Arguments

statusBoolean value; true for a valid configuration, false otherwise.
msgIf status is false, msg contains a string of information describing why the configuration is invalid.

Alternatives

To validate a C++ encapsulation interface in the Simulink Configuration Parameters graphical user interface, go to the Interface pane and click the Configure C++ Encapsulation Interface button. This button launches the Configure C++ encapsulation interface dialog box, where you can display and configure the step method for your model class. Click the Validate button to validate your current model step function configuration. The Validation pane displays success or failure status and an explanation of any failure. For more information, see Configure the Step Method for Your Model Class 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