Jump to content

Error 1 Thrown Upon Releasing Queue in dynamic launched VIs


Recommended Posts

Hi everyone,

I have an issue that I have not been able to resolve. The attached screen shoot is taken from my VIT that simulates an AI operation. This VIT is used to create separate executions of the VI depending of the number of DAQ boards in the system. The simulation works well but the problem arises when the loop end execution and the program moves on. The Release Queue VI executes correctly for the first VI that reaches this point. However, the other VIs reach this point throw an Error 1 when they try to release the queue. Each VI has its own obtain queue at the beginning of the execution. The program is behaving as if the Force Destroy input in the Release Queue VI was set to TRUE. Do you have any idea or suggestions to continue my troubleshooting? Thank you.

Regards,

Diego F. Reyes

post-15188-124845162414_thumb.jpg

Link to comment

Not sure what is causing this but here are a few things to try:

1. what is in your Error case? Do you pass the queue ref through?

2. Try using a shift register for passing your ref through the loop. This is just good practice and is very important in FOR loops because if the loop does not execute and you don't use a shift register then the output tunnel will be NULL. Not sure if timed loops can also do this. Normal While loops cannot since they always execute once.

3. Are you sure you are not stepping on the queue somewhere else with a force destroy set to true?

4. Can you post more of the code for us to look at?

  • Like 1
Link to comment

Not sure what is causing this but here are a few things to try:

1. what is in your Error case? Do you pass the queue ref through?

2. Try using a shift register for passing your ref through the loop. This is just good practice and is very important in FOR loops because if the loop does not execute and you don't use a shift register then the output tunnel will be NULL. Not sure if timed loops can also do this. Normal While loops cannot since they always execute once.

3. Are you sure you are not stepping on the queue somewhere else with a force destroy set to true?

4. Can you post more of the code for us to look at?

John,

The Error case just passes the ref through. I just tired the code using a shift register. It seems to be working properly. I am going to set up my regression testing to run it over the weekend.

Thanks for the suggestions. I am not going to have to stay late today trying to figuring this one out thumbup1.gif

Regards,

Diego F. Reyes

Link to comment
Thanks for the suggestions. I am not going to have to stay late today trying to figuring this one out thumbup1.gif
If that worked, it means that sometimes your For Loop is executing zero times... you might want to check your other tunnel outputs to make sure you're ok with the values that they return if the loop executes zero times.
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.