LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Storing UDP connection ID in a LabView global variable

I'm trying to store the UDP connection ID into a LabView global for future reference to the UDP Read function.  I keep getting and error code 1 when trying to close the UDP port but only if I run my UDP Open and UDP Close VI's individually.  If I place the Open/Close VI's in a top level VI, they seem to work fine.  I've attach my sample code in LV8.2.
0 Kudos
Message 1 of 2
(3,248 Views)
Network connections are closed once the top-level VI finishes. Thus, when you run the "Open" VI by itself it is the top-level VI, and when it finishes, the connection is closed. When you run the "debug" VI it is the top-level VI, and the connection is not closed until that VI finishes, although you're closing the connection yourself, so that doesn't matter.

Message Edited by smercurio_fc on 07-10-2007 05:06 PM

Message 2 of 2
(3,246 Views)