LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

queue

Hi all,
 
I am currently working on a project and required the use of queue. I have attached part of the project as attachment. In this program, I wish to to generate 20 IQ data and store them into the queue and then try to de-queue to see if I am able to get all 20 IQ data to display in the array. I need the IQ data to be in the arraY.
 
I tried to run this program and it seen like it is not working. Can someone please take a look and tell me what has gone wrong.
 
Your help will be appreciated!!
 
Thanks.
 
Zhi Hong
 
 
0 Kudos
Message 1 of 3
(2,625 Views)
You have set the maximum queue size as 2, then you are attempting to enter 20 elements into the queue.

Queues are indented for use to be used in parallel, rather than in series. What exactly are you trying to achieve? In your current set up, an array would be more appropriate.

For more information on queues, you can look them up in the examples section under help.
_____________________________
- Cheers, Ed
0 Kudos
Message 2 of 3
(2,621 Views)
Zhi

The Queue was stuck because you set the Queue size to 2 but then tried to put 20 items on the Queue.
Changing the Queue size to -1 (default) or 20 works.  I am curious as to why you are placing twenty (20)  items on the Queue but only removing two (2). You should flush the Queue on exiting to release the memory.
Visualize the Solution

CLA

LabVIEW, LabVIEW FPGA
0 Kudos
Message 3 of 3
(2,620 Views)