Writing S-Functions    
ssGetInputPortRealSignal

Get the address of a real, contiguous signal entering an input port.

Syntax

Arguments
S
   SimStruct representing an S-function block.

inputPortIdx
   Index of port whose sample time is required.

Description

Returns the address of a real signal on the specified input port. A method should use this macro only if the input signal is known to be real and mdlIntializeSizes has specified that the elements of the input signal be contiguous, using ssSetInputPortRequiredContiguous.

Languages

C, C++

Example

The following code demonstrates the use of ssGetInputPortRealSignal.

See Also
ssSetInputPortRequiredContiguous, ssGetInputPortSignal, mdlInitializeSizes


 ssGetInputPortOverWritable ssGetInputPortRealSignalPtrs