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

  • Download
  • Add to my manuals
  • Print
  • Page
    / 210
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 200
Fully Inlined S-Function with the mdlRTW Routine
4-35
boolean_T even = (mxGetScalar(XDATAEVENLYSPACED(S)) != 0.0);
if (!ssWriteRTWParamSettings(S, 1,
SSWRITE_VALUE_QSTR,
“XSpacing”,
even ? “EvenlySpaced” : “UnEvenlySpaced”)){
return;/* An error occurred which will be reported by Simulink */
}
}
}
#endif /* MDL_RTW */
/*=============================*
* Required S-function trailer *
*=============================*/
#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
/* [EOF] sfun_directlook.c */
Page view 200
1 2 ... 196 197 198 199 200 201 202 203 204 205 206 ... 209 210

Comments to this Manuals

No comments