From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

release queue error

Solved!
Go to solution

i am learning to use queue, however i cannot figure out why i cannot release queue, it always generate error 1

 

my experiment software is simple, it just queue the number of "numeric" when you click up a few times.

 

and the dequeue will pull out one by one to display in "array"

the "milisecond to wait" is just i delay to dequeueing process.

 

i believe is good practice to release the queue at the end, however i count not get it working, i do not know what mistake i did,

0 Kudos
Message 1 of 2
(2,028 Views)
Solution
Accepted by topic author jackson_thom

Hi Chin,

 

i cannot figure out why i cannot release queue, it always generate error 1

Where exactly do you get that "error 1"?

(I think the ReleaseQueue is working as intended…)

 

i believe is good practice to release the queue at the end, however i count not get it working,

Because you don't release the queue "at the end", but instead "parallel to some other loops"!

And because you try to release the very same queue several times because your loop iterates at 100ms…

 

Release the queue when those other loops are finished.

(Open the example finder and search for "queue". Then examine the example VIs…)

 

i do not know what mistake i did,

You forgot to use the error wire in each place and you forgot to implement error handling.

And you didn't THINK DATAFLOW!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,020 Views)