03-08-2022 09:34 AM
Hello LabVIEW Enthusiasts,
I have used Queued message handler programming and Object oriented programming Architecture but I am not a pro at it. I have the basic understanding of OOP.
When I saw the QMH, sometimes I see that controlling the Queues seems to be difficult and I saw that when ever message handler recieve any message regarding the Data Acquisition loop when it has alot of data, does it loose the data?. While, when it has to go to another queue with the message.
I see that OOP, it is very tructured programming and also it is huge topic. I would like to do the programming in the structured way.
Can anyone tell me, Which programming architecture should I follow?
In QMH will there be any data loss when it shift between queues with a huge amount of data?
Is it a good practice, if i use QMH with a OOP architecture?
Can anyone give me suggestions and opinions?
Thank you!
03-08-2022 12:02 PM
03-09-2022 07:55 AM
@LabVIEW_Enthusiast wrote:Can anyone tell me, Which programming architecture should I follow?
As always, it depends...
@LabVIEW_Enthusiast wrote:In QMH will there be any data loss when it shift between queues with a huge amount of data?
It shouldn't. Unless 'huge' means you don't have any memory left.
This is starting to sound more like a producer/consumer pattern...
@LabVIEW_Enthusiast wrote:Is it a good practice, if i use QMH with a OOP architecture?
Yes.
OOP isn't an architecture though. It's a programming paradigm. Using OO in a QMH would be a good way to start out with OO.