MATLAB SIMULINK 7 - DEVELOPING S-FUNCTIONS User's Guide Page 128

  • Download
  • Add to my manuals
  • Print
  • Page
    / 210
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 127
3 Writing S-Functions As C-MEX files
3-84
}
}
#endif /* end mdlZeroCrossings */
/* Function: mdlTerminate =====================================================
* Abstract:
* No termination needed, but we are required to have this routine.
*/
static void mdlTerminate(SimStruct *S)
{
}
#ifdef MATLAB_MEX_FILE /* Is this file being compiled as a MEX-file? */
#include "simulink.c" /* MEX-file interface mechanism */
#else
#include "cg_sfun.h" /* Code generation registration function */
#endif
Example - Time Varying Continuous Transfer
Function
The stvctf S-function is an example of a time varying continuous transfer
function. It demonstrates how to work with the solvers so that the simulation
maintains consistency, which means that block maintains smooth and
consistent signals for the integrators despite the fact that the equations that
are being integrated are changing.
Page view 127
1 2 ... 123 124 125 126 127 128 129 130 131 132 133 ... 209 210

Comments to this Manuals

No comments