LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shared variables and stand alone applications

Hi,

 

I have a control architecture with two CRIO chassis and a PC:

- PC is running the UI.

- CRIO9049 is doing some specific high frequency measurements and runs the shared variable engine.

- CRIO9053 is doing some low speed acquisition.

 

The communication between the nodes is done using shared variables, with the library depoloyed on the CRIO9049, and everything works well when run from the project explorer.

 

However, if I build the stand alone applications, the connection with the 9053 does not work -while the 9049 and the PC can communicate without any problem. I can then open the application on the 9053 on the project explorer -what causes the 9053 and the 9049 to abbort their current processes because of the sahred variables (!)- and everything works.

 

So the question is what I am missing in my 9053 build, since it seems it is not able to connect to the SVE. But I am sure the SVE on the CRIO9049 is working, since it connects with the PC.

So I am not sure why the 9053 is not able to connect. Must I also somehow deploy the library on the 9053 pointing to the 9049?

 

Help is very much appreciated.

 

Carlos

 

 

 

 

 

 

0 Kudos
Message 1 of 5
(914 Views)

You have 3 machines (2 cRIO and 1 host PC). Which machine is hosting the shared variables (has the variables.lvlib)?

Using Network Published Shared Variables to Communicate Between Systems

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 5
(900 Views)

Hi ZYOng,

 

The library is installed in the cRIO9049.

 

Communication works well within the cRIO9049 and the PC. And it only works with the cRIO9053 if the SW is run from the project explorer.

 

Litos

0 Kudos
Message 3 of 5
(883 Views)

How are the three machines connected together? Are both cRIO connected through a switch? Can you try running Putty on one cRIO and see if it can ping another cRIO?

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
Message 4 of 5
(879 Views)

Hi,

All three are connected with a switch.

 

172.22.10.1 is the host PC

172.22.10.2 is the CRIO9049, who has the shared variables library deployed

172.22.10.3 is the CRIO9053

 

I can ping CRIO9049 from CRIO9053 while the stand alone application is running. Still no communication

 

Litos_0-1698055549556.png

 

0 Kudos
Message 5 of 5
(800 Views)