Documentation

Buses

Configure S-function block to work with buses

S-Function Callback Methods

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

SimStruct Functions

ssGetBusElementComplexSignalGet the signal complexity for a bus element
ssGetBusElementDataTypeGet the data type identifier for a bus element
ssGetBusElementDimensionsGet the dimensions of a bus element
ssGetBusElementNameGet the name of a bus element
ssGetBusElementNumDimensionsGet the number of dimensions for a bus element
ssGetBusElementOffsetGet the offset from the start of the bus data type to a bus element
ssGetNumBusElementsGet the number of elements in a bus signal
ssGetSFcnParamNameGet the value of a block parameter for an S-function block
ssIsDataTypeABusDetermine whether a data type identifier represents a bus signal
ssRegisterTypeFromParameterRegister a data type that a parameter in the Simulink data type table specifies
ssRegisterTypeFromNamedObjectRegister a custom data type from a Simulink.AliasType, Simulink.NumericType, or Simulink.Bus object.
ssSetBusInputAsStructSpecify whether to convert the input bus signal for an S-function from virtual to nonvirtual
ssSetBusOutputAsStructSpecify whether the output bus signal from an S-function must be virtual or nonvirtual
ssSetBusOutputObjectNameSpecify the name of the bus object that defines the structure and type of the output bus signal

Topics

S-Function Callback Methods

Description of S-function callback methods

S-Function SimStruct Functions

Overview of SimStruct macros and functions.

Was this topic helpful?