Skip to Main Content Skip to Search
Product Documentation

ssSetOutputPortFrameData - Specify whether a port outputs framed data

Syntax

void ssSetOutputPortFrameData(SimStruct *S,  int_T port,
  Frame_T outputsFrames)

Arguments

S

SimStruct representing an S-Function block.

port

Index of an output port.

outputsFrames

Type of signal output by port. Acceptable values are FRAME_INHERITED (either frame or unframed output), FRAME_NO (unframed output only), and FRAME_YES (framed output only).

Description

Use in mdlInitializeSizes to specify whether an output port issues frame data only, unframed data only, or both. By default, output ports do not issue frame signals (FRAME_NO). If the S-function specifies FRAME_INHERITED for the frame status of any of its output ports, the S-function should include an mdlSetInputPortFrameData callback method to set the frame status for these ports.

The use of frame-based signals (outputsFrames has a value of FRAME_YES) requires a DSP System Toolbox product license.

Languages

C, C++

Example

See the S-function sdotproduct.c used in sfcndemo_sdotproduct.mdl.

See Also

ssGetOutputPortFrameData, mdlSetInputPortFrameData

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS