Main Content

ssSetAsyncTimerAttributes

declares that the Simulink block 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

Use ssSetAsyncTimerAttributes to indicate that the block requires a timer and set the resolution of the timer specified in the Timer resolution parameter.

Example

/* Setup Async Timer attributes */
ssSetAsyncTimerAttributes(S,mxGetPr(TICK_RES)[0]);

Languages

C, C++

Introduced before R2006a