LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

passing queue to dynamically called VI

Solved!
Go to solution

Hi Mike

Please look at how i wrote the code. please let me know if there is something wrong.

 

Actually if what if you are saying works out it will be better for me. In my application Dynamic VI is a reentrant VI and i launch several instances of that VI. and each instance has a different queue. if i have to follow the LV2G way then i will have to track all those queue refs. using array of refs.

but if your solution works then my work will get reduced.

 

thanks

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 11 of 18
(1,740 Views)
Take a look at the VIs in my previous post. They are examples for named queues. Start, stop and close the VIs and observe the indicators.
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 12 of 18
(1,739 Views)

I am having 8.2. can you please save it for 8.2 and upload it again

 

Also it seems that attachment is not properly attached in my previous msg.

Please find it here

Message Edited by Tushar Jambhekar on 01-23-2009 01:27 AM

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 13 of 18
(1,724 Views)
There you are....
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Download All
Message 14 of 18
(1,721 Views)

Ton, Chris, and Mike

      Thanks for the valuable Queue tips!

 

Here's a [LV8.2] way to safely share a Queue with a spawned-process - retaining the advantage of strict data-type enforcement as well as the coding clarity that comes with explicitly-passed Queue reference, but without the dependency of specifying the same Queue name (and type) in multiple places.

 


TonP wrote:

      Ben wrote:

            TO keep the queues alive you have to make sure the VI that created them nver goes idle.

 

      That is why I never use subVIs.

Ton


 

Smiley Very Happy 

 

Regarding complex hierarchies, I've noticed that many problems are avoided by not including a top-level VI.

 

Cheers!

Message Edited by tbd on 01-23-2009 02:26 AM
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Download All
Message 15 of 18
(1,710 Views)

Hi Tushar,

 

I feel the problem in your case will be without opening the front panel of the dynamic VI you are closing the refernce of the dynamic VI in the main panel. See attached code.

 

 

------

"A VI inside a Class is worth hundreds in the bush"
യവന്‍ പുലിയാണു കേട്ടാ!!!
0 Kudos
Message 16 of 18
(1,695 Views)
8.2 version attached
------

"A VI inside a Class is worth hundreds in the bush"
യവന്‍ പുലിയാണു കേട്ടാ!!!
0 Kudos
Message 17 of 18
(1,692 Views)

Yes its working perfectly even in my code.

 

i dont know what was going wrong yesterday.

 

thank you very much for your kind help.

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 18 of 18
(1,680 Views)