Writing S-Functions Previous page   Next Page
ssSetZeroBasedIndexInputPort

Specify that an input port expects zero-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 zero-based index values. Simulink signals an error if it detects that the signal connected to this block is one-based when it updates a diagram containing the S-function.

Languages

C, C++

See Also

mdlInitializeSizes, ssSetZeroBasedIndexOutputPort, ssSetOneBasedIndexInputPort


Previous page  ssSetVectorMode ssSetZeroBasedIndexOutputPort Next page

© 1994-2005 The MathWorks, Inc.