If I understand correctly, your host VI hangs after you run it if you have a shared variable deployed on either the host or the target, but it does not hang when there is not a shared variable. Is this correct?
What version of LabVIEW and LabVIEW Real-Time do you have?
Is this shared variable network published? Have you enabled Real-Time FIFOs?
Try running an example program called
RT Network Communication, which is located in our NI Example Finder:
1. In LabVIEW, go to
Help » Find Examples.
2. In the center directory of folders that appears in the center, navigate to
Toolkits and Modules » Real-Time » Network Communication » RT Network Communication.
Let me know if this works for you.
Trey B
Applications Engineering
National Instruments