MATLAB SIMULINK 7 - DEVELOPING S-FUNCTIONS Uživatelská příručka Strana 195

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 210
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 194
Fully Inlined S-Function with the mdlRTW Routine
4-29
}
return(TRUE);
} else {
return(FALSE);
}
}
/* end IsRealVect */
/*====================*
* S-function routines *
*====================*/
#define MDL_CHECK_PARAMETERS /* Change to #undef to remove function */
#if defined(MDL_CHECK_PARAMETERS) && defined(MATLAB_MEX_FILE)
/* Function: mdlCheckParameters ================================================
* Abstract:
* This routine will be called after mdlInitializeSizes, whenever
* parameters change or get re-evaluated. The purpose of this routine is
* to verify that the new parameter settings are correct.
*
* You should add a call to this routine from mdlInitalizeSizes
* to check the parameters. After setting your sizes elements, you should:
* if (ssGetSFcnParamsCount(S) == ssGetNumSFcnParams(S)) {
* mdlCheckParameters(S);
* }
*/
static void mdlCheckParameters(SimStruct *S)
{
if (!IsRealVect(XVECT(S))) {
ssSetErrorStatus(S,”1st, X-vector parameter must be a real finite “
“ vector”);
return;
}
if (!IsRealVect(YVECT(S))) {
ssSetErrorStatus(S,”2nd, Y-vector parameter must be a real finite “
“vector”);
return;
}
/*
* Verify that the dimensions of X and Y are the same.
*/
if (mxGetNumberOfElements(XVECT(S)) != mxGetNumberOfElements(YVECT(S)) ||
mxGetNumberOfElements(XVECT(S)) == 1) {
ssSetErrorStatus(S,”X and Y-vectors must be of the same dimension “
“and have at least two elements”);
return;
}
Zobrazit stránku 194
1 2 ... 190 191 192 193 194 195 196 197 198 199 200 ... 209 210

Komentáře k této Příručce

Žádné komentáře

Xerox DocuColor 250 manuals

Owner’s manuals and user’s guides for Printers Xerox DocuColor 250.
We providing 1 pdf manuals Xerox DocuColor 250 for download free by document types: User Manual






More products and manuals for Printers Xerox

Models Document Type
DocuColor 2060 NPS User Manual   Xerox DocuColor 2060 NPS User Manual, 38 pages
701P35371 User Manual   Xerox 701P35371 User Manual, 86 pages
DocuColor 5000AP User Manual   Xerox DocuColor 5000AP User Manual, 20 pages
CopyCentre/WorkCentre 118 MO3101Y6-1 User Manual   Xerox CopyCentre/WorkCentre 118 MO3101Y6-1 User Manual, 4 pages
DCC360 User Manual   Xerox DCC360 User Manual, 7 pages
3535 User Manual   Xerox 3535 User Manual, 268 pages
Phaser laser printer 4500 User Manual   Xerox Phaser laser printer 4500 User Manual, 10 pages
96/4635/180 IPS User Manual   Xerox 96/4635/180 IPS User Manual, 51 pages
3100MFP User Manual   Xerox 3100MFP User Manual, 12 pages
6360 User Manual   Xerox 6360 User Manual, 4 pages
SquareFold 610P729932 User Manual   Xerox SquareFold 610P729932 User Manual, 2 pages
Phaser 6180 User Manual   Xerox Phaser 6180 User Manual, 4 pages
DC98CC09 User Manual   Xerox DC98CC09 User Manual, 4 pages
XT3008EN0-2 User Manual   Xerox XT3008EN0-2 User Manual, 30 pages
2000 User Manual   Xerox 2000 User Manual, 2 pages
WorkCentre XD130DF User Manual   Xerox WorkCentre XD130DF User Manual, 1 pages
F12 User Manual   Xerox F12 User Manual, 4 pages
785 User Manual   Xerox 785 User Manual, 368 pages
DC220 User Manual   Xerox DC220 User Manual, 2 pages
8142 User Manual   Xerox 8142 User Manual, 1 pages