Documentation

Code Generation

Configure code-generation settings for S-Function blocks

SimStruct Functions

ssGetDWorkRTWIdentifierGet the identifier used to declare a DWork vector in code generated from the associated S-function
ssGetDWorkRTWIdentifierMustResolveToSignalObjectGet a flag indicating if a DWork vector resolves to a Simulink.Signal object
ssGetDWorkRTWStorageClassGet the storage class of a DWork vector in code generated from the associated S-function
ssGetDWorkRTWTypeQualifierGet the C type qualifier (e.g., const) used to declare a DWork vector in code generated from the associated S-function
ssGetPlacementGroupGet the name of the placement group of a block
ssRTWGenIsCodeGenIdentify any code generation that is not used by the Accelerator.
ssSetDWorkRTWIdentifierSpecify the identifier used to declare a DWork vector in code generated from the associated S-function
ssSetDWorkRTWIdentifierMustResolveToSignalObjectSpecify if a DWork vector resolves to a Simulink.Signal object
ssSetDWorkRTWStorageClassSpecify the storage class of a DWork vector in code generated from the associated S-function
ssSetDWorkRTWTypeQualifierSpecify the C type qualifier (e.g., const) used to declare a DWork vector in code generated from the associated S-function
ssSetPlacementGroupSpecify the name of the placement group of a block
ssWriteRTW2dMatParamWrite a matrix parameter to the model.rtw file
ssWriteRTWMx2dMatParamWrite a matrix parameter in MATLAB format to the model.rtw file
ssWriteRTWMxVectParamWrite a vector parameter in MATLAB format to the model.rtw file
ssWriteRTWParametersWrite tunable parameter information to the model.rtw file
ssWriteRTWParamSettingsWrite values of nontunable parameters to the model.rtw file
ssWriteRTWScalarParamWrite a scalar parameter to the model.rtw file
ssWriteRTWStrWrite a character vector to the model.rtw file
ssWriteRTWStrParamWrite a character vector parameter to the model.rtw file
ssWriteRTWStrVectParamWrite a vector of character vector parameters to the model.rtw file
ssWriteRTWVectParamWrite a vector parameter to the model.rtw file
ssWriteRTWWorkVectWrite work vectors to the model.rtw file

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?