Anyone knows how fast Task-Event gets updated? I understand this is like an "interruption". This is for CODESYS Control for Raspberry Pi SL. I know that for some PLCs this task is update very bus cycle but not sure for the Raspberry. I want to know how fast this is scanned since I have another micro that could trigger an interruption in less than 10us, which I find difficult the RASPI will detect. Thank you.
Thanks for your reply. I had a hunch that the scheduler task was going to be slow. The min cycle time on the raspi using codesys is 50us, it is "fast" but not fast enough. I will try other methods. Thanks again.
Cheers,
Khar
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Anyone knows how fast Task-Event gets updated? I understand this is like an "interruption". This is for CODESYS Control for Raspberry Pi SL. I know that for some PLCs this task is update very bus cycle but not sure for the Raspberry. I want to know how fast this is scanned since I have another micro that could trigger an interruption in less than 10us, which I find difficult the RASPI will detect. Thank you.
Hi!
Those events are scanned in the Scheduler interval, which is by default 1ms on most systems. But those events are not useful for fast reactions.
Some systems provide so called "external events". Those can be better compared with " interrupt handlers". But the raspi has no support for that.
Your only chance is a quick cyclic task, in which you execute your code.
Cheers,
Ingo
hi @ingo,
Thanks for your reply. I had a hunch that the scheduler task was going to be slow. The min cycle time on the raspi using codesys is 50us, it is "fast" but not fast enough. I will try other methods. Thanks again.
Cheers,
Khar