ssSetAsyncTimerAttributes
declares that the金宝appblock requires a timer
Syntax
ssSetAsyncTimerAttributes(SimStruct *S, double res)
Arguments
-
S
-
SimStruct representing an S-Function block.
-
res
-
Timer resolution parameter in seconds.
Returns
None
Description
UsessSetAsyncTimerAttributes
to indicate that the block requires a timer and set the resolution of the timer specified in theTimer resolutionparameter.
Example
/* Setup Async Timer attributes */ ssSetAsyncTimerAttributes(S,mxGetPr(TICK_RES)[0]);
语言
C, C++