Real Time Programming
How can I create a real-time program?
It highly depends on your definition of real-time. Even in real-time systems, there is a cycle time that the scheduler aims to ensure. Generally, you can run any application with real-time priorities by prefixing the call with
chrt
it's essential to be cautious as many actions can disrupt your real-time cycle time if not handled correctly, such as blocking operations like I/O access, etc.
Would it be possible to run a program with hard real-time requirements? For example, with a value of every 20ms? Can I use Python?
Yes, it is possible to create a program with hard real-time requirements, but using Python might not be the best choice in this case. Python has certain limitations when it comes to achieving hard real-time performance. To ensure strict timing requirements, it would be better to implement such a program in a language like C or other low-level languages with better control over system resources and timing. These languages allow you to fine-tune and optimize your code for hard real-time constraints.
https://revolutionpi.de/forum/viewtopic.php?f=6&t=2815#p10264