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 modelsfcndemo_simulinkfunction_getsetis an S-function example that models an object with get and set methods using two scoped Simulink Functions.

Version History

Introduced in R2018a