Documentation

ssSetInputPortRequiredContiguous

Specify that the signal elements entering a port must be contiguous

Syntax

void ssSetInputPortRequiredContiguous(SimStruct *S, int_T port, int_T flag)

Arguments

S

SimStruct representing an S-Function block.

port

Index of an input port.

flag

True (1) if signal elements must be contiguous.

Description

指定信号元素进入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 byssGetInputPortSignal. The S-function can set the value of this attribute as early as in themdlInitializeSizesmethod and at the latest in themdlSetWorkWidthsmethod.

Note

The default setting for this flag is false (0). Hence, the default method for accessing the input signals isssGetInputSignalPtrs.

Languages

C, C++

Example

See the S-functionsfun_io_handling2.cused insfcndemo_io_handling.

Introduced before R2006a