runValidation

Class: RTW.ModelCPPDefaultClass
Package: RTW

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

Syntax

[status, msg] = runValidation(obj)

Description

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

Input Arguments

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

Output Arguments

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

Alternatives

To validate a C++ class interface 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 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 status and an explanation of failures. For more information, see Configure Step Method for Your Model Class.