Main Content

ssGetSimulinkFunctionInput

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

Syntax

real_T ssGetSimulinkFunctionInput(ssFcnCallExecArg execArgs, int_T inArgIdx)

Arguments

execArgs

Information for arguments.

inArgIdx

Index of input argument.

Returns

Pointer to input argument.

Description

#define U0  (*(real_T*)ssGetSimulinkFunctionInput(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