| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
void ssSetOutputPortOverwritesInputPort(SimStruct *S, int_T outIdx, int_T inIdx)
SimStruct representing an S-Function block.
Index of the output port.
Index of the input port.
The argument inIdx tells the Simulink engine which input port of S can share its memory with the output port specified by outIdx. inIdx can have the following values:
Index of an input port of S that can share its memory with the specified output port.
You must use ssSetInputPortOverWritable to tell the engine that the specified input port can share its memory with an output port.
OVERWRITE_INPUT_ANY
The output port can share its memory with any input port.
OVERWRITE_INPUT_NONE
The output port must have its own memory buffer.
C, C++
![]() | ssSetOutputPortOptimOpts | ssSetOutputPortSampleTime | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |