AnsweredAssumed Answered

How to use PEx Timeout component

Question asked by Javer Valino on Jun 8, 2014
Latest reply on Jun 8, 2014 by Erich Styger

Hi,

 

Can anyone tell me how to use the timeout component in PEx?

I did something like this.. But unfortunately, it doesn't work.

 

TMOUT1_Init();

handle = TMOUT1_GetCounter(4000);

res = TMOUT1_Value(handle);

while (TMOUT1_CounterExpired(handle) != TRUE) {

printf(“%d \r\n”, res);

}

TMOUT1_LeaveCounter(handle);

printf(“%d \r\n”, res);

 

Thank you in advance.

Outcomes