valter.carvalho
Member
Hi everyone,
Suppose I have a periodic task to trigger some communications, and in this task I have a pointer that iterates for each communication trigger (which goes to it's respective MSG).
The iteration is a simple addition to the pointer number, then the routines with the MSG's are called, then the next and after the last one I move zero to the pointer.
Question is: In a periodic task, the pointer will only iterate once each time the task is called?
For example, my periodic task runs each 100ms. I have a pointer to cycle through 12 msg blocks. Can I assume the task will execute one iteration per 100ms, which will give me a span time of 1200ms between a message A is executed, then the other ones, and finally message A is executed again?
Or if the total running time of the task is, for example 10ms, it will cycle many times until it's 100ms window finishes?
Suppose I have a periodic task to trigger some communications, and in this task I have a pointer that iterates for each communication trigger (which goes to it's respective MSG).
The iteration is a simple addition to the pointer number, then the routines with the MSG's are called, then the next and after the last one I move zero to the pointer.
Question is: In a periodic task, the pointer will only iterate once each time the task is called?
For example, my periodic task runs each 100ms. I have a pointer to cycle through 12 msg blocks. Can I assume the task will execute one iteration per 100ms, which will give me a span time of 1200ms between a message A is executed, then the other ones, and finally message A is executed again?
Or if the total running time of the task is, for example 10ms, it will cycle many times until it's 100ms window finishes?