User`s guide

56
rtmGetOffsetTimePtr(S),
rtmGetSampleHitPtr(S),
rtmGetSampleTimeTaskIDPtr(S),
rtmGetTStart(S),
&rtmGetSimTimeStep(S),
&rtmGetTimingData(S));
if (status != NULL) {
/* Failed to initialize sample time engine */
exit(EXIT_FAILURE);
}
MdlStart();
enable_interrupts();
config_schedulerTimer();
noErr =
rtmGetErrorStatus(benchmark_M) == NULL;
while (noErr ) {
noErr =
rtmGetErrorStatus(benchmark_M) == NULL;
}
MdlTerminate();
disable_interrupts();
}
E.2.3 – benchmark_data.c
/*
* benchmark_data.c
*
* Real-Time Workshop code generation for Simulink model "benchmark.mdl".
*
* Model Version : 1.43
* Real-Time Workshop version : 6.6 (R2007a) 01-Feb-2007
* C source code generated on : Sat Jul 26 15:51:07 2008
*/
#include "benchmark.h"
#include "benchmark_private.h"
/* Block parameters (auto storage) */
Parameters_benchmark benchmark_P = {
8.1472368639317894E-001,
{ contains the 1000
th
order vector used by the FIR-filter, removed from this report to the great relief of
the rainforest },
1.1040062944571298E+000
};