Main Content

ssSetOutputPortIsContinuousQuantity

Declare that output port generates co-simulation signals

Syntax

ssSetOutputPortIsContinuousQuantity(SimStruct *S, val)

Arguments

S

SimStruct that represents an S-Function block.

port

Output port of the S-function block to generate co-simulation signals.

val

Int or boolean value (0 or 1) indicating if this port generates a co-simulation signal, which is a discrete-time signal that represents a continuous quantity.

Description

Use this macro in an S-function to specify that an output port generates co-simulation signals that represent continuous quantities.

Languages

C, C++

Examples

See the S-function used in matlabroot\toolbox\simulink\sfuntemplates\src\cosim_plant1_sfcn.c

Version History

Introduced in R2018a