Main Content

ssGetSimulinkFunctionInput

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

Syntax

void *ssGetSimulinkFunctionInput(ssFcnCallExecArgs 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++

Examples

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

Version History

Introduced in R2018a