Writing S-Functions    
ssGetInputPortRealSignalPtrs

Get pointers to signals of type double connected to an input port.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

port
   Index of port whose signal is required.

Description

Returns pointers to the elements of a signal of type double connected to port. The input port index starts at 0 and ends at the number of input ports minus 1. This macro returns a pointer to an array of pointers to the real_T input signal elements. The length of the array of pointers is equal to the width of the input port.

Languages

C

Example

The following example reads all input port signals.

See Also
ssGetInputPortWidth, ssGetInputPortDataType, ssGetInputPortSignalPtrs


  ssGetInputPortRealSignal ssGetInputPortRequiredContiguous