Jump to content

Queue Problem! Help!


Recommended Posts

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

Link to comment

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.

  • Like 1
Link to comment

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.

Link to comment

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

Link to comment

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.