Writing S-Functions    
ssGetOutputPortRealSignal

Get a pointer to an output signal of type double (real_T).

Syntax

Arguments

S
   SimStruct representing an S-Function block.

port
   Index of an output port.

Description

Use in any simulation loop routine, mdlInitializeConditions, or mdlStart to access an output port signal where the output port index starts at 0 and must be less than the number of output ports. This returns a contiguous real_T vector of length equal to the width of the output port.

Example

To write to all output ports, you would use

Languages

C

See Also
ssGetInputPortRealSignalPtrs


  ssGetOutputPortOffsetTime ssGetOutputPortReusable