Comunicating LabVIEW NXG with a Real-Time Device

Updated May 16, 2019

Reported In

Software

  • LabVIEW NXG
  • LabVIEW Real-Time Module

Issue Details

I have a Real-Time device running an application developed in LabVIEW, but I would like to use LabVIEW NXG to develop a user interface to take advantage of its UI features. Is there a way I can communicate with a Real-Time device using LabVIEW NXG?

Solution

While, as of LabVIEW NXG 3.0, LabVIEW NXG does not currently allow Real-Time application development, you can communicate with a previously developed Real-Time applications that use Shared Variables, Network Streams, TCP or UDP to transmit and/or receive data, just the same way you would do it in LabVIEW.

Please refer to the Related Links section for information about the functions used to perform Shared Variable, Network Stream, TCP and UDP communication in LabVIEW NXG.

Additional Information

Notice that in order to use any of the methods mentioned in this article, you need to know the IP of any Real-Time device you want to connect with. If your project involves programmatic retrieval of the Real-Time device's IP Address, you will either need to develop the project in LabVIEW, or call a LabVIEW VI or Executable that retrieves the information and shares it with LabVIEW NXG.

If you are looking to use a WebVI, it is important to note that LabVIEW NXG WebVIs have significantly different functionality from standard VIs. You will not be able to access and display data directly from a network shared variable with a WebVI. You will need to use other data communication methods such as using an HTTP requests, SystemLink data services, or JavaScript to access externally hosted information. 

WAS THIS ARTICLE HELPFUL?

Not Helpful