MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Guide de l'utilisateur Page 160

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 386
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 159
5 Data Logging and Signal Monitoring
5-8
continue;
}
}
/*install/remove the signals*/
for (w = 0; w < blockInfo->signalWidth; w++) {
sprintf(name, "%s_%d_%s_%d", blockName, blockInfo->portNumber,
(blockInfo->signalName==NULL)?"":blockInfo->signalName, w);
if (install) { /*install*/
if (!ScopeInstallSignal(name, "units",
(void *)((int)blockInfo->signalAddr +
w*blockInfo->dtSize),
blockInfo->dtName, 0)) {
fprintf(stderr,"rtInstallRemoveSignals: ScopeInstallSignal "
"possible error: over 256 signals.\n");
return -1;
} else {
ret =0;
}
} else { /*remove*/
if (!ScopeRemoveSignal(name, 0)) {
ifprintf(stderr,"rtInstallRemoveSignals: ScopeRemoveSignal\n"
"%s not found.\n",name);
return -1;
} else {
ret =0;
}
}
}
}
return ret;
}
Vue de la page 159
1 2 ... 155 156 157 158 159 160 161 162 163 164 165 ... 385 386

Commentaires sur ces manuels

Pas de commentaire