Thanks for your answer. I wanted to not use the wait function because it is not precise (I think). If I put a 'case structure' in the second loop that waits for an occurrence, it will be more precise, but the test of the 'case structure' will use CPU time. Is there a better way to use the occurrence ? Or am I wrong, to wait an occurence does not use CPU ?