Main Content

ssDeclareFunctionCaller

Declare Simulink Function call with a given function prototype.

Syntax

void ssDeclareFunctionCaller(SimStruct *S, char *fcnPrototype)

Arguments

S

SimStruct representing an S-Function block.

fcnPrototype

Interface between a function caller and a Simulink Function.

Returns

No return value.

Description

char fcnPrototype[] = "y = timestwo(u)";
ssDeclareFunctionCaller(S, fcnPrototype);

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