From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, 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: 

Can not programmaticly access network-shared variables

Hello,

 

I try to access a network-shared Varialble on the RT system, but I get Error -1950678943. If I execute the code from LabVIEW, everything is fine. The problem occurs when I use a RT startup application, but only in case, if no network cable is connected. The connection to a network is enough to eliminate the problem, but the system should stand alone.Has anyone experience with such a failure?

0 Kudos
Message 1 of 4
(1,136 Views)

Are you accessing the shared variables within the RT target or from the host PC?

Where are the shared variables hosted? RT target or the host PC? 

Can you show a screenshot on the LabVIEW project?

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 4
(1,108 Views)

In addition to what ZYOng posted, you might also want to look out how you're addressing the shared variables (assuming you're trying to access shared variables from the machine that's hosting them).

 

I remember there being some differences opening a local cRIO FPGA connection depending on whether we went directly through the item or had localhost/IP/hostname so maybe shared variables are similar in this regard.

Matt J | National Instruments | CLA
0 Kudos
Message 3 of 4
(1,101 Views)

Thanks for your answers.

 

The variable are hosted at the RT target and I also want to access them from the RT target.

 

Today, I found the solution. It seems that the RT target do not use the same hostname with and without a network connection.

The solution was to add

   127.0.0.1 <desired_hostname>

to the file /etc/hosts at the RT target.

After a reboot everything seems to be fine.

 

Thanks again.

 

Message 4 of 4
(1,049 Views)