setArgCategory (Function Prototype Control) - Set argument category for Simulink model port in model-specific C function prototype

Syntax

setArgCategory(obj, portName, category)

Arguments

obj

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

portName

String specifying the unqualified name of an inport or outport in your Simulink model.

category

String specifying the argument category, 'Value' or 'Pointer', to be set for the specified Simulink model port.

Description

The setArgCategory function sets the category, 'Value' or 'Pointer', of the argument corresponding to a specified Simulink model inport or outport in a specified model-specific C function prototype.

See Also

Controlling Model Function Prototypes in the Real-Time Workshop Embedded Coder documentation

  


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