Writing S-Functions Previous page   Next Page
ssSetOneBasedIndexInputPort

Specify that an input port expects one-based indices.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

pIdx
   Input port of the S-function.

Description

Use this macro in mdlInitializeSizes to specify that port pIdx expects one-based index values. Simulink signals an error if it detects that the signal connected to this block is zero-based when it updates a diagram containing the S-function.

Languages

C, C++

See Also

mdlInitializeSizes, ssSetOneBasedIndexOutputPort, ssSetZeroBasedIndexInputPort


Previous page  ssSetOffsetTime ssSetOneBasedIndexOutputPort Next page

© 1994-2005 The MathWorks, Inc.