Writing S-Functions Previous page   Next Page
ssSetOneBasedIndexOutputPort

Specify that an output port emits one-based indices.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

pIdx
   Output port of the S-function.

Description

Use this macro in mdlInitializeSizes to specify that port pIdx emits one-based index values. Simulink signals an error if it detects during model update that the port is connected to an input that expects zero-based indices.

Languages

C, C++

See Also

mdlInitializeSizes, ssSetOneBasedIndexOutputPort, ssSetZeroBasedIndexOutputPort


Previous page  ssSetOneBasedIndexInputPort ssSetOptions Next page

© 1994-2005 The MathWorks, Inc.