ssGetCurrentInputPortDimensions
Get the current size of dimension dIdx of input port pIdx
Syntax
int_T ssGetCurrentInputPortDimensions(SimStruct *S,int_T pIdx, int_T dIdx)
Arguments
S
SimStruct that represents an S-Function block.
pIdx
Input port index being polled.
dIdx
Index of dimension being polled.
Returns
An int_T value indicating the size of dimension dIdx
.
Description
Obtain the current size of dimension, dIdx
of the input
port.
ssGetCurrentInputPortDimensions
should not be used for fixed
dimension ports. If you run your simulation in any of the accelerator modes, and if
you have a mixture of variable-size and fixed-size input ports, confirm that your
variable-size inputs are defined before the fixed-size inputs.
Languages
C, C++
Examples
See the S-function sfun_varsize_concat1D.c
.
Version History
Introduced in R2009b