| Real-Time Workshop® Embedded Coder™ | ![]() |
position = getArgPosition(obj, portName)
Handle to a model-specific C prototype function control object, such as a handle previously returned by obj = RTW.getFunctionSpecification(modelName).
String specifying the name of an inport or outport in your Simulink model.
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.
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.
Controlling Model Function Prototypes in the Real-Time Workshop Embedded Coder documentation
![]() | getArgPosition (C++ Encapsulation Interface Control) | getArgQualifier (C++ Encapsulation Interface Control) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |