01-23-2009 12:21 AM
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
01-23-2009 12:29 AM
01-23-2009 01:23 AM - edited 01-23-2009 01:27 AM
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
Tushar Jambhekar
tushar@jambhekar.com
Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog
01-23-2009 01:31 AM
01-23-2009 02:17 AM - edited 01-23-2009 02:26 AM
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
Regarding complex hierarchies, I've noticed that many problems are avoided by not including a top-level VI.
Cheers!
01-23-2009 02:27 AM
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.
01-23-2009 02:30 AM
01-23-2009 03:01 AM
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