LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Enqueue and Dequeue States

Solved!
Go to solution
I am trying to pass button states through queue but it keeps saying nothing. I do not understand why and have been working on if for days. Why does it not stay the state given?
CLD Certified 2014
0 Kudos
Message 1 of 3
(3,400 Views)

hi ArexelDragon,

  The queue will store the element,but in the top while loop you are dequeuing ,so you can see the data in a very short period of time.The best way is you can probe the output..

 

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


Message 2 of 3
(3,389 Views)
Solution
Accepted by topic author ADrexelDragon

What do you mean by "state"?  Are you talking about what shows up in the string indicator?

 

You have a timeout value associated with the dequeue function.  If another element isn't placed in the queue within 50 msec, then the dequeue times out and returns the default value for that cluster your are trying to dequeue which is an empty string.  If you remove the timeout constant or change it to -1, then the dequeue never times out and the loop stays waiting for the next element the dequeue actually receives.

Message 3 of 3
(3,382 Views)