| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
void ssSetInputPortRequiredContiguous(SimStruct *S, int_T port, int_T flag)
SimStruct representing an S-Function block.
Index of an input port.
True (1) if signal elements must be contiguous.
Specifies that the signal elements entering the specified port must occupy contiguous areas of memory. This allows a method to access the elements of the signal simply by incrementing the signal pointer returned by ssGetInputPortSignal. The S-function can set the value of this attribute as early as in the mdlInitializeSizes method and at the latest in the mdlSetWorkWidths method.
Note The default setting for this flag is false (0). Hence, the default method for accessing the input signals is ssGetInputSignalPtrs. |
C, C++
See the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_io_handling2.c used in sfcndemo_io_handling.mdl.
mdlInitializeSizes, mdlSetWorkWidths, ssGetInputPortSignal, ssGetInputPortSignalPtrs
![]() | ssSetInputPortOverWritable | ssSetInputPortSampleTime | ![]() |

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 |