LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1 Thrown Upon Releasing Queue

I am getting an error code 1 when trying to release a queue.  All of the queue functionality seems to work just fine until trying to release.  Attached is some mocked up code which shows the problem.   Note, I've successfully used this type of coding for queues in the past.   For some reason I just can't get it to work now.
0 Kudos
Message 1 of 5
(3,171 Views)

JHess,

There is an extra hidden Release Queue function in the For loop.  Right-click the loop and select 'Auto Grow' to see it.  This was causing each queue to try to release twice, which would cause an error the second time because the queue is no longer valid.  Also, you may want to double check the wiring of the queue refs to the three consumer loops.  Bot the 'Right Button' and 'Left Button' loops are connected to the same reference.

Chris M.

0 Kudos
Message 2 of 5
(3,167 Views)

Hello,

The problem it's that there's something not visible that's it's causing the error.

1 - execute the program

2 - Stop it

3 - in the error pop-up, select to stop execution and go to the control panel.

4 - You can see that it stoped in something that it's not visible, still it's selected. Delete it.

Then the vi works fine.

I can post your vi repaired. But you can only open it if you have labview 8.5

Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 3 of 5
(3,166 Views)
Enlarge your For loop that releases the queue by expanding it to the left.  Once you do that, you will see you actually have 2 release queues in there in a row.  So you get an error because it is trying to release a queue that is already released.  I found this by turning on highlight execution.  I saw some data was flowing backwards and seemed to be going behind the big while loop.  Once I moved and stretched and dragged and did some Clean Wires, I was able to see the extra, hidden release queue.
 
EDIT.  Wow, 3 responses in 3 minutes!


Message Edited by Ravens Fan on 05-02-2008 11:01 AM
0 Kudos
Message 4 of 5
(3,163 Views)
Everyone, thanks so much for your help!!  This was driving me crazy.
0 Kudos
Message 5 of 5
(3,157 Views)