LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Illegal reference queue handle

Solved!
Go to solution

hello!

In the VI I uploaded in this post,i made a user-defined control Queues.ctl.

But when i run this VI ,there is an error   "Illegal reference queue handle"? And I can not work out where i did wrong.

Please help me,thank you!!

Download All
0 Kudos
Message 1 of 9
(3,121 Views)

Where is the rest of your code?  Where do you obtain the queue references?

 

How do you get those queue references into the subVI?  The cluster that contains those references isn't connected to the connector panel.

0 Kudos
Message 2 of 9
(3,090 Views)

you need connect the VI with the Queues.ctl.Queues.ctl is a user-made control

0 Kudos
Message 3 of 9
(3,081 Views)

@guigui004 wrote:

you need connect the VI with the Queues.ctl.Queues.ctl is a user-made control


That sentence doesn't make any sense and doesn't answer any of my questions.

 

Where do you obtain your queue references?

How do you get those queue references into your subVI since your cluster control that contains those queue references isn't connected to your subVI's connector panel?

Where is your VI that calls this subVI?

0 Kudos
Message 4 of 9
(3,077 Views)

Sorry,it is my fault ,could you please  tell me your E-mail address? i can send all my VIs to you.

0 Kudos
Message 5 of 9
(3,067 Views)

No.  I don't put my e-mail address in public forums.

 

You can attach your VI's to the message.  If they are too many, too big, or contain proprietary information, recreate the problem in a few smaller VI's stripping out the unnecessary stuff.  Often you'll find that by doing that, you'll probably figure out the answer yourself.

 

If it's more than a couple files, create a .zip file and attach that.

Message 6 of 9
(3,062 Views)

When i run the OFDM_transmitter.vi,the error ocurred.

0 Kudos
Message 7 of 9
(3,037 Views)
Solution
Accepted by topic author guigui004

If you run OFDM_transmitter.vi as a top level VI, you will get the error because the queue reference is invalid.

To use a queue, your code must obtain a queue reference at runtime.

 

If OFDM_transmitter.vi is being called by another VI, then you have to look into that VI to see why the queue reference is not valid.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 8 of 9
(3,020 Views)

According to what you said,i find that OFDM_transmitter.vi is indeed called by another vi,so now i can run the toppest vi with no error.

Thank you very much!   You have helped me a lot.

By the way, I am sorry about my poor EnglishSmiley TongueSmiley Tongue

0 Kudos
Message 9 of 9
(3,007 Views)