ssQuerySimulinkFunction
Determine if function name is declared as a Simulink Function.
Syntax
int_T ssQuerySimulinkFunction(SimStruct *S, char *scopedFcnName, SSSimulinkFunctionQueryType queryType)
Arguments
S
SimStruct that represents an S-Function block.
scopedFucnName
Name of a Simulink Function.
queryType
Enumerated type
SSSimulinkFunctionQueryType
with a one permissible valueSS_SIMULINK_FUNCTION_QUERY_IS_DECLARED
.
Returns
Either an int_T
(1
or 0
)
or boolean_T
(true
or
false
) value.
Description
if(ssQuerySimulinkFunction(S, "timestwo",SS_SIMULINK_FUNCTION_QUERY_IS_DECLARED)) { return "timestwo";
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
, ssGetSimulinkFunctionOutput
, ssSetSimulinkFunctionArgComplexity
, ssSetSimulinkFunctionArgDataType
, ssSetSimulinkFunctionArgDimensions
Version History
Introduced in R2018a