Archived: Deploying Shared Variables to a Specific Network CardThis article has been archived and is no longer updated by National Instruments
Primary Software: LabVIEW Development Systems>>LabVIEW Full Development System
Primary Software Version: 8.2.1
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>LabVIEW Professional Development System
I am deploying my shared variable on the host PC and trying to write to the variables from my real-time target. Why am I not seeing the values update?
As of LabVIEW 2012 Logos Sockets broadcast Shared Variables to all available NICs.
Normally, the Shared Variable Engine uses the default network adapter for the system on which it is running. In the case of a system having both wired and wireless connections, the wireless connection is generally the default connection. In LabVIEW 8.2.1, the ability to specify which network adapter will be used by the Shared Variable Engine was added. This is done by modifying the appropriate .ini configuration file depending on whether the shared variables are being hosted on a Windows-based system or an RT-based system.
For a Windows-based system:
If one does not already exist, create a file in the
In order for the Shared Variable Engine to bind to this ethernet card, the computer will need to be restarted.
The IP address also needs to be changed to reflect the IP address of the desired network card under the My Computer settings in the LabVIEW Project Explorer.
Right-click on My Computer within the LabVIEW Project Explorer, click on Properties. Under the General tab, click the Specify Custom Address checkbox, and enter the IP address of the network card that the shared variables will be deployed to.
For an RT-based system
To bind shared variable communication to a specific adapter on an RT-based system, add the following lines to the ni-rt.ini file located in the highest level directory on the target:
to bind to the primary adapter, or:
to bind to the secondary adapter.
Other Causes of Communication Trouble
If your RT target is receiving Error -1950679022 from the shared variable error out terminal, then the problem is likely writing to the wrong adapter (see above), or a firewall issue. The Windows Vista Firewall may prevent writing to shared variables hosted by the Vista machine. The firewall can be turned off to allow for RT targets to write to the shared variables published on the Vista host.
Note: As of LabVIEW 8.2.1, you can define what network card will be used for deploying shared variables. In the previous versions of LabVIEW, the Shared Variable engine used the default Ethernet device which can be changed in the Windows OS.
Note: If you are using DAQmx devices in the same LabVIEW project that you change the IP address in, make sure that the 2nd NIC card is always on. If the router is unplugged or the NIC card is disabled this will cause you not to see your DAQmx devices in the related LabVIEW project.
KnowledgeBase 2QAE9QIT: Can I Use Multiple Network Cards with LabVIEW?
KnowledgeBase 42I77BXJ: Connecting to Ethernet Targets with Multiple Network Cards in the Host
Report Date: 04/21/2006
Last Updated: 10/03/2014
Document ID: 3WK9NH9A