ssSetSimulinkFunctionArgDataType
Declare data type of Simulink Function argument.
Syntax
void ssSetSimulinkFunctionArgDataType(SimStruct *S, char *scopedFcnName, char *argName, DTypeId val)
Arguments
SSimStruct that represents an S-Function block.
scopedFcnNameUse the scoped Simulink Function name if its Visibility parameter set to
scoped.argNameName of Simulink Function argument.
valEnumerated type
DTypeIdwith permitted values:SS_DOUBLE,SS_SINGLE,SS_INT8,SS_UINT8,SS_INT16,SS_UINT16,SS_INT32,SS_UINT32,SS_BOOLEAN.
Returns
No return value.
Description
ssSetSimulinkFunctionArgDataType(S, "timestwo", "u", SS_DOUBLE);
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, ssQuerySimulinkFunction, ssSetSimulinkFunctionArgComplexity, ssSetSimulinkFunctionArgDimensions
Version History
Introduced in R2018a