ssSetSimulinkFunctionArgDataType

Declare data type of Simulink Function argument.

Syntax

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

Arguments

S

SimStruct representing an S-Function block.

scopedFcnName

Name of a Simulink Function with 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++

Example

The model sfcndemo_simulinkfunction_getset is an S-function example that models an object with get and set methods using two scoped Simulink Functions.

Introduced in R2018a