runValidation (Function Prototype Control)

Validate model-specific C function prototype against Simulink® model to which it is attached

Syntax

[status, msg] = runValidation(obj)

Arguments

obj

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

Returns

[status, msg], where status is true for a valid configuration and false otherwise. If status is false, message contains information explaining why the configuration is invalid.

Description

The runValidation function 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 (Function Prototype Control), 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.

See Also

Controlling model_step Function Prototypes in the Real-Time Workshop® Embedded Coder™ documentation

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS