LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

references into an asyncronous call

Should passing references to an open TCP connection and Queue allow a VI called asyncronously to use them?  It's fire and forget, but I'm getting an error saying both references are invalid.  Ended up using a FGV to store both and that is working.

0 Kudos
Message 1 of 4
(2,868 Views)

It's impossible to tell with some code, but generally it should work. The most likely reason for your problem is the automatic cleanup LV does. References are owned by the hierarchy they're created in (defined by the top level VI) and when that hierarchy goes idle, they're automatically destroyed. Most likely this is what's happening in your case.


___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(2,846 Views)

Wouldn't the reference in the FGV suffer from the same fate?

0 Kudos
Message 3 of 4
(2,838 Views)

There are certainly cases where an FGV would have the same problem. I don't know if yours is one of them, so I'll repeat my previous comment - impossible to tell without code.


___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(2,834 Views)