runValidation
Class:RTW.ModelCPPDefaultClass
Package:RTW
Validate model-specific C++ class interface against金宝appmodel
Syntax
[
status
,msg
] = runValidation(obj
)
Description
[
runs a validation check of the specified model-specific C++ class interface against the ERT-based Simulink®model to which it is attached.status
,msg
] = runValidation(obj
)
Before calling this function, you must call eitherattachToModel
, to attach a function prototype to a loaded model, orRTW.getClassInterfaceSpecification
, to get the handle to a function prototype previously attached to a loaded model.
Input Arguments
|
Handle to a model-specific C++ class interface control object, such as a handle previously returned by or . |
Output Arguments
|
Boolean value; true for a valid configuration, false otherwise. |
|
If is false, 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 theInterfacepane and click theConfigure C++ Class Interfacebutton. This button launches the Configure C++ class interface dialog box, where you can display and configure the step method for your model class. Click theValidatebutton to validate your current model step function configuration. TheValidationpane displays status and an explanation of failures. For more information, seeConfigure Step Method for Your Model Class.