Using WebVIs to Create User Interfaces for Web Services (Windows)

Parent Topic: Overview: Web-Based Communication with a LabVIEW Application

If you want to create user interfaces to visualize data and interact with Web services through a web browser, integrate WebVIs into Web services. WebVIs are specialized VIs that generate HTML, JavaScript, and CSS files after you build them into a web application in LabVIEW NXG. WebVIs can communicate with Web services through HTTP methods and display the data acquired from the Web services.

You must install LabVIEW NXG and the LabVIEW NXG Web Module to use WebVIs. Refer to the LabVIEW NXG Manual and LabVIEW NXG Web Module Manual for detailed information about creating browser-based user interfaces.

Note  For more information about concepts in this topic, refer to the�Web services introduction�and�tutorial. LabVIEW Web services are available only in the LabVIEW Full Development System and the LabVIEW Professional Development System.

Complete the following steps to create a user interface for a Web service by integrating a WebVI:

  1. Develop a web application that communicates with the Web service:
    1. Open LabVIEW NXG.
    2. Create a new web application for communicating data with Web services using WebVIs.
    3. Build the web application to generate HTML, JavaScript, CSS, and other files that are included in your application.
  2. Integrate the web application into your Web service:
    1. In LabVIEW, create a public content folder in your Web service project and integrate static content into the Web service.
    2. Copy the entire web application output directory into the public content folder you create.
  3. Check if the user interface works as expected in a web browser. Test and debug the Web service to fix any unexpected issues.
  4. Publish the Web service to the NI Web Server.