| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
int_T ssGetInputPortBufferDstPort(SimStruct *S, int_T inputPortIdx)
The int_T index of the output port that reuses the memory buffer of the input port indicated by the index inputPortIdx. If none of the S-function's output ports reuse this input port buffer, returns INVALID_PORT_IDX (-1).
Use this function any time after model initialization to get the index of the output port that reuses the specified input port's buffer.
During model compilation, the Simulink engine may allocate the same memory buffer to the specified input port and an output port of this S-function if the following conditions apply:
Neither the input port nor the output port are test points.
The input port is overwritable (ssSetInputPortOverWritable).
C, C++
ssSetNumInputPorts, ssSetInputPortOverWritable
![]() | ssGetInlineParameters | ssGetInputPortComplexSignal | ![]() |

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 |