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
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?
Re MQTT, an honourable mention goes out to NATS and PubNub. Those are really lightweight and powerful.
Just stick with c
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.
@Aditya thakekar , heard of tools like Cython or SWIG ?
Yes
Less the complication better it is. Start with simple things
Okay thanks a lot @Aditya thakekar , I will just continue with C
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
You are right , there are some areas that C would handle more effectively which python could lack , even python seems so faster to write
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.