you just need to apply on your Linux Kernel a realtime rt_preemt patch. (google for it - there are so many advices how to do this in the net)
for testing purpose you could try: https://www.raspberrypi.org/forums/viewtopic.php?t=250927
That's it basically. If you want to have more control what of your iec code (whoch task) is running on which cpu core then additional using Raspberry PI MC (multicore) will improve it.
Last edit: eschwellinger 2021-09-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to set my codesys runtime to real time using this guide here: http://www.comfilewiki.co.kr/en/doku.php?id=comfilepi:improving_real-time_performance:index on a raspberry pi (comfile)
I tried:
but CodesysControl is still not set as RT:
Interestingly, when I used top command, I got this:
Is it because of the PID mismatch? How do I remedy this issue?
Last edit: autojay 2021-09-12
you just need to apply on your Linux Kernel a realtime rt_preemt patch. (google for it - there are so many advices how to do this in the net)
for testing purpose you could try:
https://www.raspberrypi.org/forums/viewtopic.php?t=250927
That's it basically. If you want to have more control what of your iec code (whoch task) is running on which cpu core then additional using Raspberry PI MC (multicore) will improve it.
Last edit: eschwellinger 2021-09-12