declares that the Simulink block requires a timer
ssSetAsyncTimerAttributes(SimStruct *S, double res)
S
SimStruct representing an S-Function block.
res
Timer resolution parameter in seconds.
None
Use ssSetAsyncTimerAttributes
to indicate that the block
requires a timer and set the resolution of the timer specified in the
Timer resolution parameter.
/* Setup Async Timer attributes */ ssSetAsyncTimerAttributes(S,mxGetPr(TICK_RES)[0]);
C, C++