I dynamical load some vi in my application. In a loaded vi,I build TCP connection with a instrument;then same the TCP Network Connection Refum as global.In Other loaded vis,I will use this global "TCP Network Connection Refum",but I found the TCP connection is not reused,and "TCP Write" will return error 1.
When I dynamical load vis,first "Open VI Reference",then set some input parameters,then "Run VI" method,then close the reference;In every dynamial load and run vi,i use this same sequence.
Someone give me some help?
How I keep the TCP connection open in difference dynamical loaded vi,now the golbal is not work correctly?