Generate code generation data for a C MEX S-function
No
C, C++
#define MDL_RTW
void mdlRTW(SimStruct *S)
S
SimStruct representing an 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.
See the S-function sfun_multiport.c
in the Simulink model sfcndemo_sfun_multiport
for an example.