Main Content

ssSetSimulinkFunctionArgDataType

Declare data type of Simulink Function argument.

Syntax

void ssSetSimulinkFunctionArgDataType(SimStruct *S, char *scopedFcnName, char *argName, DTypeId val)

Arguments

S

SimStruct that represents an S-Function block.

scopedFcnName

Use the scoped Simulink Function name if its Visibility parameter set to scoped.

argName

Name of Simulink Function argument.

val

Enumerated type DTypeId with 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.

Version History

Introduced in R2018a