Main Content
ssGetSimulinkFunctionOutput
Get a pointer to an output argument passed to a Simulink Function.
Syntax
void *ssGetSimulinkFunctionOutput(ssFcnCallExecArgs execArgs, int_T outArgIdx)
Arguments
S
SimStruct that represents an S-Function block.
execArgs
Information for arguments.
outArgIdx
Index of output argument.
Returns
Pointer to output argument.
Description
#define Y0 (*(real_T*)ssGetSimulinkFunctionOutput(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.
See Also
ssCallSimulinkFunction
, ssDeclareFunctionCaller
, ssDeclareSimulinkFunction
, ssGetSimulinkFunctionInput
, ssQuerySimulinkFunction
, ssSetSimulinkFunctionArgComplexity
, ssSetSimulinkFunctionArgDataType
, ssSetSimulinkFunctionArgDimensions
Version History
Introduced in R2018a