Main Content

ssGetInputPortIsContinuousQuantity

Determine if input port expects co-simulation signals

Syntax

int_T ssGetInputPortIsContinuousQuantity(SimStruct *S, *port)

Arguments

S

SimStruct representing an S-Function block.

port

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

Returns

An int_T (1 or 0) value indicating if the input port expects co-simulation signals.

Description

Use this macro in an S-function to determine if 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