Main Content

ssGetSimulinkFunctionOutput

Get a pointer to an output argument passed to a Simulink Function.

Syntax

real_T ssGetSimulinkFunctionOutput(ssFcnCallExecArg execArgs, int_T outArgIdx)

Arguments

S

SimStruct representing an S-Function block.

execArgs

Information for arguments.

outArgIdx

Index of output argument.

Returns

Pointer to output argument.

Description

#define Y0  (*(real_T*)ssGetSimulinkFunctionOutput(args,0))

Languages

C, C++

Example

The model sfcndemo_simulinkfunction_getset is an S-function example that models an object with get and set methods using two scoped Simulink Functions.

Introduced in R2018a