Example Code

URL for WebVI

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • G Web Development Software
  • LabVIEW NXG
  • LabVIEW NXG Web Module

Code and Documents

Attachment

Description

The library provides APIs for parsing and creating URLs in WebVIs. See the demos online.

Features

  • URL VIs
    • VIs to manipulate URLs as strings.
    • Calculate a relative path to a new URL.
    • Trigger a browser download for a given URL path.
    • Advanced URL parsing functions to manipulate the parts of a given URL.
  • Window Location VIs
    • VIs to manipulate the page URL via the window location object.
    • Get and read parameters from the page URL.
    • Navigate the page to a new URL programmatically.

 

Diagram Palette

photo.jpg

photo.jpg

photo.jpg

photo.jpg

mceclip0.png

mceclip1.png

mceclip2.png

Changelog

Release 5 - Updated the Window Location VI docs, icons, and playground to emphasize the VIs are for handling the page URL via the window location object

Release 4 - Add top-level support to URL Build Relative Path VI and the various Window Location VIs

Release 3 - Support for G Web Development Software 2021

Release 2 - Initial community release

 

 


Milan

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors