Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Program freezes when I add a shared variable to the project tree

This setup includes a host PC and a PXI system with the RT operating system.  I am trying to use a shared variable to pass data from the PXI to the host.  The program running on the RT runs fine.  However,  the program on the host will not run.  I get a (Not Responding) error in Labview and I have to use the Windows Task Manager to shut down.   I  have tried putting the shared variabe under the RT as well as under the Host, but I get the same result.  In fact, the program on the Host will freeze just by having the shared variable in the  project tree...without any calls to that variable.
0 Kudos
Message 1 of 4
(5,569 Views)
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
0 Kudos
Message 2 of 4
(5,489 Views)
You understand correctly.  I am using Version 8.20 for both LV and LV RT.   Network Publishing is selected and RT FIFO is enabled.  I have also select the data type as and array of U8int.  The Example you pointed me to works on the system.  As I mentioned before, the Host program will not even run as long as the Shared Variable is present in the Project Tree.  I only need to write to this variable once after starting the program on the RT side.  Then have it available on the Host side at various locations in the program.


Thanks for your help.
0 Kudos
Message 3 of 4
(4,940 Views)
What version of the Network Variable Engine do you have on the RT controller, and the LabVIEW Real-Time module?  If you expand your target in Remote Systems and right-click on the software section and select add/remove software, a window will pop up with the software.  When you click on each software category, it will display what version is on the target and which one is on the host.  Make sure that these versions are the same.

Trey B
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(4,767 Views)