01-25-2023 10:18 AM
Hello friends,
Hope you are doing good!
Myself Rahul. I just started using LabVIEW.
I have been assigned a project wherein my LabVIEW application continuously acquires data from 10 customised controllers. The controllers sends data using MQTT protocol in JSON string form. Previous developer have used producer - consumer design pattern. He tried one queue for data acquisition.
The code doesn't run in real-time , but it should. Can you help me out here.
Solved! Go to Solution.
01-25-2023 02:49 PM
Please define your understanding of "Real-time" pertaining to your application.
01-25-2023 10:47 PM
When controller send signal, it should display on my application within half a second. Half second suffice the need.
01-26-2023 10:06 AM
A quick review of the code architecture does not show any signs of inefficient code that could slow down your acquisition. A decent producer-consumer architecture with queues and the MQTT packets are user events.
Do you know the latency of the MQTT packets?
You would need to debug further to narrow down the root cause. Without actual hardware to try, it would not be possible to help further. Let's see if others find any potential causes.