| Contents | Index |
Validate model-specific C++ encapsulation interface against Simulink model
[status, msg]
= runValidation(obj)
[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.
| obj | Handle to a model-specific C++ encapsulation interface control object, such as a handle previously returned by obj = RTW.ModelCPPVoidClass or obj = RTW.getEncapsulationInterfaceSpecification (modelName). |
| status | Boolean value; true for a valid configuration, false otherwise. |
| msg | If status is false, msg contains a string of information describing why the configuration is invalid. |
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.

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 |