thinking of setting up a small data acquisition system on a RTOS platform

Hello, Good day to everyone 🙌, so I'm thinking of setting up a small data acquisition system on a RTOS platform, like QNX or RT-Linux. I've heard that C/C++ is commonly used for this, but I'm wondering if it's worth considering Python for everything . Should I go with "all Python" , mix it with "C" for critical parts, or just stick to C? Please I need advice on this 💡🙏
11 Replies
techielew
techielew3mo ago
I'd say it depends on your design objectives and what you're comfortable in working in but if you need to use an RTOS and are familiar enough with C, why not just keep it small and straightforward and go with that? Any @Middleware & OS folks want to weigh in on this?
barafael
barafael3mo ago
Re MQTT, an honourable mention goes out to NATS and PubNub. Those are really lightweight and powerful.
Aditya thakekar
Aditya thakekar3mo ago
Just stick with c
Marvee Amasi
Marvee Amasi3mo ago
Thank you @techielew , I am actually comfortable working with C , but i just need something faster and easier to work with, with ease in debugging.
Marvee Amasi
Marvee Amasi3mo ago
@Aditya thakekar , heard of tools like Cython or SWIG ?
Aditya thakekar
Aditya thakekar3mo ago
Yes
Aditya thakekar
Aditya thakekar3mo ago
Less the complication better it is. Start with simple things
Marvee Amasi
Marvee Amasi3mo ago
Okay thanks a lot @Aditya thakekar , I will just continue with C
Joseph Ogbonna
Joseph Ogbonna3mo ago
For a solid data acquisition setup on an RTOS, go with the main stack , your C/C++. Python might not handle the real-time stuff as well. Keep it straightforward. C is quite good and you should be able to see some example files for it than Python
Marvee Amasi
Marvee Amasi3mo ago
You are right , there are some areas that C would handle more effectively which python could lack , even python seems so faster to write
Joseph Ogbonna
Joseph Ogbonna3mo ago
One other thing to consider is the MCU choice, their are some the is built specifically for Python. That means there will be more example files and library support for Python. But if you consider other dependencies like speed, C is better.