ssCallSimulinkFunction

Call a declared Simulink Function of a given function prototype at run time.

Syntax

void ssCallSimulinkFunction(SimStruct *S, char *scopedFcnName, int_T numInArgs, ssFcnCallExecArg execInArgs, int_T numOutArgs, ssFcnCallExecArg execOutArgs)

Arguments

S

SimStruct representing an S-Function block.

scopedFcnName

Name of a Simulink Function with its Visibility parameter set to scoped.

numInArgs

Number of input arguments.

execInArgs

Information for input arguments.

numOutArgs

Number of output arguments.

execOutArgs

Information for output arguments.

Returns

No return value.

Description

 ssCallSimulinkFunction(S, "timestwo", 1, inArgs, 1, outArgs);

Languages

C, C++

Introduced in R2018a