This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

ssSetInputPortIsContinuousQuantity

Declare that input port expects co-simulation signals

Syntax

ssSetInputPortIsContinuousQuantity(SimStruct *S, *port, val)

Arguments

S

SimStruct representing an S-Function block.

port

Input port of the S-function block to expect co-simulation signals.

val

Int or boolean value (0 or 1) indicating if this port expects 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 input port expects co-simulation signals representing continuous quantities.

Languages

C, C++

Example

See the S-function used in matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_cosimMassSpring.c

Introduced in R2018a