LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Queue returning error while exiting when calling subvi within main vi

Solved!
Go to solution

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                                              

0 Kudos
Message 1 of 3
(2,745 Views)
Solution
Accepted by topic author K.Waris

 

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

 

 

Don't forget to give Kudo's for a good answer !

LabVIEW Champion
Certified LabVIEW Architect
Certified TestStand Architect
Message 2 of 3
(2,741 Views)

Spot on!

 

Thanks Chris

0 Kudos
Message 3 of 3
(2,737 Views)