02-23-2017 08:10 PM
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!!
Solved! Go to Solution.
02-23-2017 08:50 PM
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.
02-23-2017 09:12 PM
you need connect the VI with the Queues.ctl.Queues.ctl is a user-made control
02-23-2017 09:24 PM
@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?
02-23-2017 10:38 PM
Sorry,it is my fault ,could you please tell me your E-mail address? i can send all my VIs to you.
02-23-2017 10:45 PM - edited 02-23-2017 10:47 PM
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.
02-24-2017 12:37 AM
When i run the OFDM_transmitter.vi,the error ocurred.
02-24-2017 02:51 AM
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.
02-24-2017 05:26 AM
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 English