取消
显示结果 
搜索替代 
您的意思是: 

Queue returning error while exiting when calling subvi within main vi

已解决!
转到解答

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 项奖励
1 条消息(共 3 条)
3,158 次查看
解答
已被主题作者 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
2 条消息(共 3 条)
3,154 次查看

Spot on!

 

Thanks Chris

0 项奖励
3 条消息(共 3 条)
3,150 次查看