Highly unlikely with pure Python in my opinion. Python is non-deterministic to start with and can do its garbage collection at inopportune times, taking a variable and unknown time to do that.Another question: Is it possible to achieve a real time application with python and raspberry pi os?
500 Hz, with a period of 2 ms, isn't excessively onerous, but, if it's a sine wave and you want to sample within that, the inter-sampling period will be much reduced. A 500 Hz sine wave with 100 samples per wave requires one sample every 20 us.
Statistics: Posted by hippy — Fri Jul 26, 2024 9:58 am