getArgPosition (Function Prototype Control) - Get argument position for Simulink model port from model-specific C function prototype

Syntax

position = getArgPosition(obj, portName)

Arguments

obj

Handle to a model-specific C prototype function control object, such as a handle previously returned by obj = RTW.getFunctionSpecification(modelName).

portName

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

Returns

Integer specifying the argument position — 1 for first, 2 for second, etc. — for the specified Simulink model port. If no argument is found for the specified port, the function returns 0.

Description

The getArgPosition function gets the position — 1 for first, 2 for second, etc. — of the argument corresponding to a specified Simulink model inport or outport from 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