07-12-2018 01:19 AM
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,
Solved! Go to Solution.
07-12-2018 01:29 AM - edited 07-12-2018 01:31 AM
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!