How Do I Publish My VI to a Web Page?

Updated Oct 1, 2018

Reported In

Software

  • LabVIEW Base
  • LabVIEW Full
  • LabVIEW Professional

Issue Details

How do I publish my VI so that I can control or view its front panel from a web page?

Solution

Complete the following steps to publish your VI to a web page:
 
  1. Open LabVIEW and navigate to Tools»Options»Web Server.
  2. Under the Remote Panel Server section, check Enable Remote Panel Server.
 

 
  1. Under the Visible VIs section, enter the name of the VI in the Visible VI field and press the Add button.
 
 
  1. Under the Browse Access section, enter the network name of the computer that needs to view the VI in the Browser address field and press the Add button. Ensure that the Allow viewing and controlling option is selected.
 
 
  1. Close out of the Options dialog box and navigate to Tools»Web Publishing Tool to open the Web Publishing Tool dialog box. Please note that the Start Web Server button should be disabled if all previous steps have been followed.
 
  1. Under Select VI and Viewing Options section, browse to and select the desired VI. Read through Web Publishing Tool Viewing Options to ensure that the appropriate Viewing Mode option is selected and press the Next button.
 
  • Confirm that the LabVIEW Web Server that hosts remote front panels is starting. If it is not, then the default post used for http may be occupied by something else. To fix this, just change the port number back in Step 2.
  1. Under the Select HTML Output section, enter the desired document title and HTML content and press the Next button.
  1. Under the Save the New Web Page section, select where to save the HTML file and choose the file name and press the Save to Disk button. To access the front panel, open this HTML file.
 
  • (Optional) Even if you had enabled SSL, the URL will still show an http link. You just need to modify the link to say https instead of http and the correct https port number instead of the http port. After those changes are complete then the secure web page will work. 
    • Sometime there can be a certificate error. What is means is the Certificate used was not digitally signed and is therefore not trusted.
 

 

Additional Information

Please note that it is necessary to use a compatible web browser to avoid a missing plugin error. A list of these browsers can be found in Why Do I Get a Missing Plugin Error When Loading a Remote Front Panel?
 

WAS THIS ARTICLE HELPFUL?

Not Helpful