Main Content

ssDeclareFunctionCaller

Declare Simulink Function call with a given function prototype.

Syntax

void ssDeclareFunctionCaller(SimStruct *S, char *fcnPrototype)

Arguments

S

SimStruct that represents an S-Function block.

fcnPrototype

Interface between a function caller and a Simulink Function.

Returns

No return value.

Description

ssDeclareFunctionCaller may only be called in mdlInitializeSizes.

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

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