MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Guía de usuario Pagina 160

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 386
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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;
}
Vista de pagina 159
1 2 ... 155 156 157 158 159 160 161 162 163 164 165 ... 385 386

Comentarios a estos manuales

Sin comentarios