| Contents | Index |
No
#define MDL_RTW
void mdlRTW(SimStruct *S)
WriteRTW(s)
Instance of Simulink.MSFcnRunTimeBlock class representing the Level-2 MATLAB S-Function block.
This function is called when the Simulink Coder product is generating the model.rtw file. In C MEX S-functions, you can call the following functions that add fields to the model.rtw file:
In C MEX S-functions, this function must be enclosed in a #if defined(MATLAB_MEX_FILE) statement.
In Level-2 MATLAB S-functions, use the run-time object's WriteRTWParam method to write custom parameters to the model.rtw file.
C, C++, MATLAB
See the S-function sfun_multiport.c in the Simulink model sldemo_msfcn_lms.mdl for an example.
See the S-function adapt_lms.m in the Simulink model sfcndemo_sfun_multiport.mdl for an example.
ssSetInputPortFrameData, ssSetOutputPortFrameData, ssSetErrorStatus

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |