Contents

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++

Was this topic helpful?