MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Guia do Utilizador Página 160

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 386
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 159
1 2 ... 155 156 157 158 159 160 161 162 163 164 165 ... 385 386

Comentários a estes Manuais

Sem comentários