| Real-Time Workshop® Embedded Coder™ | ![]() |
setArgCategory(obj, portName, category)
Handle to a model-specific C prototype function control object previously returned by obj = RTW.ModelSpecificCPrototype or obj = RTW.getFunctionSpecification(modelName).
String specifying the unqualified name of an inport or outport in your Simulink model.
String specifying the argument category, 'Value' or 'Pointer', to be set for the specified Simulink model port.
Note If you change the argument category for an outport from 'Pointer' to 'Value', the change will cause the argument to move to the first argument position when attachToModel (Function Prototype Control) or runValidation (Function Prototype Control) is called. |
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.
Controlling Model Function Prototypes in the Real-Time Workshop Embedded Coder documentation
![]() | setArgCategory (C++ Encapsulation Interface Control) | setArgName (C++ Encapsulation Interface Control) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |