From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
In my attached code I am trying to enqueue and dequeue elements. The problem is that when I am checking queue status using "Get queus status" it shows that there are some elements in the queue. Can somebody look at it and guide me what is the problem. Why the queus are not getting empty completely.
The only issue I am seeing is your wait in the bottom consumer loop (writing to the FPGA). I would get rid of that wait so that you can process the data as quickly as it comes in,
There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Many thanks for your reply. I tried to remove the 33 milli sec. delay. But it does not affect any thing and the code shows the same behaviour. But If I separate the dequeus and FPGA write in to different while loops then dequeus works fine and no elements remain in the Get queus status any more. But I have another issue now. I have to access "Y-component of the cluster in the FPGA write "while loop". But when I am trying to access it there I got nothing. Its indicator inside FPGA write while loop shows nothing although the indicator of Y-component inside dequeue while loop shows values.
Can you guide mehow to fix this issue. Many thanks for your guidance.