Documentation

Data Type

Configure data type for S-Function blocks

S-Function Callback Methods

mdlInitializeSizesSpecify the number of inputs, outputs, states, parameters, and other characteristics of the C MEX S-function

SimStruct Functions

ssRegisterDataTypeRegister a custom data type
ssRegisterTypeFromNamedObjectRegister a custom data type from a Simulink.AliasType, Simulink.NumericType, or Simulink.Bus object.
ssSetDataTypeSizeSet the size of a custom data type
ssSetDataTypeZeroSet the zero representation of a data type
ssSetInputPortDataTypeSet the data type of an input port
ssSetOutputPortDataTypeSet the data type of an output port
ssGetDataTypeIdGet the ID of a data type
ssGetDataTypeIdAliasedThruToGet the base data type associated with a data type alias
ssGetDataTypeNameGet the name of a data type
ssGetDataTypeSizeGet the size of a custom data type
ssGetDataTypeZeroGet the zero representation of a data type
ssGetInputPortDataTypeGet the data type of an input port
ssGetNumDataTypesGet number of data types registered for this simulation, including built-in types
ssGetOutputPortDataTypeGet the data type of an output port
ssGetOutputPortSignalGet the vector of signal elements emitted by an output port
ssGetSFcnParamDataTypeGet the data type of a parameter for an S-Function block

Examples and How To

Custom Data Types

How to create custom data types for the values of a block's signals and parameters.

Concepts

S-Function Callback Methods

Description of S-function callback methods

S-Function SimStruct Functions

Overview of SimStruct macros and functions.

Was this topic helpful?