Writing S-Functions    
ssGetInputPortSignalPtrs

Get pointers to an input port's signal elements.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

port
   Index of an input port.

Description

Returns a pointer to an array of signal element pointers for the specified input port. For example, if the input port width is 5, this function returns a pointer to a 5-element pointer array. Each element in the pointer array points to the specific element of the input signal.

You must use ssGetInputPortRealSignalPtrs to get pointers to signals of type double (real_T).

Languages

C

Example

Assume that the input port data types are int8_T.

See Also
ssGetInputPortRealSignalPtrs


  ssGetInputPortSignalAddress ssGetInputPortWidth