setArgName

Set argument name for Simulink® model port in model-specific C function prototype

Syntax

setArgName(obj, portName, argName)

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 name of an inport or outport in your Simulink model.

argName

String specifying the argument name to set for the specified Simulink model port. The argument must be a valid C identifier.

Description

The setArgName function sets the argument name corresponding to a specified Simulink model inport or outport in a specified model-specific C function prototype.

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