hova2010 Posted October 1, 2009 Report Share Posted October 1, 2009 Hello All I am trying to use Queues to pass values between loops. The problem is, I can not get the Dequeue Element to pass the boolean result value. In my VI, Dequeue element should transition between false and true when the timer runs. True when the timer elapses and False when the timer resets. The timer is set to expire at 3 seconds. Does anyone know why Dequeue does not pass the timer result booleans false / true? thanks! J queue_problem.vi Quote Link to comment
ShaunR Posted October 1, 2009 Report Share Posted October 1, 2009 You need to give the value a name. Quote Link to comment
hova2010 Posted October 1, 2009 Author Report Share Posted October 1, 2009 You need to give the value a name. Sorry I couldnt open your response..I am using Labview 8.5.1 Can you post a picture of your solution? Which value are you are referring to? J Quote Link to comment
ShaunR Posted October 1, 2009 Report Share Posted October 1, 2009 (edited) Sorry I couldnt open your response..I am using Labview 8.5.1 Can you post a picture of your solution? Which value are you are referring to? J Sorry. I've just shown the label and named it "boolean" Edited October 1, 2009 by ShaunR Quote Link to comment
Gary Rubin Posted October 1, 2009 Report Share Posted October 1, 2009 You are killing the queue before you have a chance to do the dequeue. The release queue has to be AFTER the dequeue loop. Quote Link to comment
hova2010 Posted October 1, 2009 Author Report Share Posted October 1, 2009 Sorry. I've just shown the label and named it "boolean" I changed the label name for that boolean constant to "boolean" and the Dequeue still does not pass values true/ false when I run my application. What else could it be? J Quote Link to comment
Daryl Posted October 1, 2009 Report Share Posted October 1, 2009 Hello All I am trying to use Queues to pass values between loops. The problem is, I can not get the Dequeue Element to pass the boolean result value. In my VI, Dequeue element should transition between false and true when the timer runs. True when the timer elapses and False when the timer resets. The timer is set to expire at 3 seconds. Does anyone know why Dequeue does not pass the timer result booleans false / true? thanks! J You are getting trapped inside that while loop that you have nested in the false case of your "deque" loop. (the one with the DAQ assistant express vi in it. 1 Quote Link to comment
ShaunR Posted October 1, 2009 Report Share Posted October 1, 2009 You are killing the queue before you have a chance to do the dequeue. The release queue has to be AFTER the dequeue loop. The loop that the release queue comes after never terminates because the boolean is set False. I changed the label name for that boolean constant to "boolean" and the Dequeue still does not pass values true/ false when I run my application. What else could it be? J Works for me. After 3 secs I get a flash of the boolean. Quote Link to comment
smenjoulet Posted October 1, 2009 Report Share Posted October 1, 2009 Does anyone know why Dequeue does not pass the timer result booleans false / true? Are you sure it isn't and the problem isn't with your DAQ loop Try moving the boolean outside the case structure and disbaling DAQ code. I think you'll find that the dequeue is working fine just as it is for me. There is a problem with your DAQ loop. Scott Quote Link to comment
Gary Rubin Posted October 1, 2009 Report Share Posted October 1, 2009 The loop that the release queue comes after never terminates because the boolean is set False. Ah, right. I missed constants on the terminations... Quote Link to comment
ShaunR Posted October 1, 2009 Report Share Posted October 1, 2009 Ah, right. I missed constants on the terminations... That'll be the next problem You must be in an earlier timezone from me...lol. Quote Link to comment
hova2010 Posted October 1, 2009 Author Report Share Posted October 1, 2009 I changed the label name for that boolean constant to "boolean" and the Dequeue still does not pass values true/ false when I run my application. What else could it be? J Gary - I tried to put the Release Queue at the end of the Dequeue Loop. That didnt work either. I tried connecting the 'queue out' from Dequeue to Release Queue....then I tried connecting the 'queue out' from the Enqueue to Release Queue Either way, dequeue still doesnt pass the value. It seems to be a problem with the loop that has my DAQ Assistant. When I take out the "DAQ Assistant Loop", the Dequeue passes value. J Quote Link to comment
Gary Rubin Posted October 1, 2009 Report Share Posted October 1, 2009 That'll be the next problem You must be in an earlier timezone from me...lol. Trying to do too many things at once... Hova, Shaun is right - my advice was wrong. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.