05-08-2011 02:24 PM
Hello
I am having issues with using queues in a project where a subvi is called from main vi. After calling subvi first time, when I press any button labview returns following error.
"LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @ ".
Please find attached the vi and project explorer file. I will appreciate feedback. I am using Labview development suite 2010.
Kind Regards
Austin
Solved! Go to Solution.
05-08-2011 02:48 PM
Hello Austin,
It looks like you are releasing your queue in the sub vi when it exits (Force destroy is set to TRUE therefore it destroys the queue, not just the reference to the queue)
I tested this by putting a diagram diable structure around the the release queue vi in the sub vi and it now works without throwing an error.
Set Force destroy to false so that it only destroys a single reference to the queue.
Chris
05-08-2011 03:25 PM
Spot on!
Thanks Chris