From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in controlling netwrok published shared variable in labview real time on cRIO

Hello.

 

I am trying to use a network published share variable in labview real time on cRIO 9012.

 

I can view the variable in NI Distributed System Manager and control the variable through it but when I try to control the variable in the host VI, ie, a VI in My Computer and not the real time target(cRIO), it cannot be done. 

 

The change in its value is being seen on the host VI but not on the real time target

 

The reference type of the variable I slected is absolute. 

 

Awaiting a solution. 

 

 

Thanks.

0 Kudos
Message 1 of 5
(2,740 Views)

Hi,

 

Where is your variable hosted? On the PC or on the CompactRIO?

Certified LabVIEW Developer
0 Kudos
Message 2 of 5
(2,596 Views)

The variable is created in cRIO. But is controlled using a VI hosted on PC. Am I wrong in doing so? 

0 Kudos
Message 3 of 5
(2,583 Views)

Hi Lahari,

 

Overall, that sounds like the correct thing to do.

 

  1. When you update the variable in your VI, do you see any changes in the Distributed System Manager?
  2. Can you post your .lvproj file and VI?
Certified LabVIEW Developer
0 Kudos
Message 4 of 5
(2,570 Views)

Read this Shared Variable Applications

 

...and check your <rt_exe>.aliases file. If your Shared Variable Engine (SVE) resides on the PC, it's IP should be saved here.

 

For debug disable your local firewall.

 

Hope it helps

Christian

0 Kudos
Message 5 of 5
(2,535 Views)