Enabling the Web Server in Stand-Alone Applications

LabVIEW 2018 Help

Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)

LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

To embed the front panel of a stand-alone application in an HTML document, enable and configure the Web Server in a application as you would in a VI. Include the front panel of the VI and the HTML file in the installation.

Note  When you build an application, on the Source File Settings page of the Application Properties dialog box, remove the checkmark from the Remove front panel checkbox for the VI you want to publish so that you can embed the front panel in an HTML document.

After you generate the application, the output folder contains both an .ini configuration file and a niwebserver.conf configuration file.

In the .ini file, add the line WebServer.Enabled=True if it does not already exist. You also can copy the WebServer* preferences from the LabVIEW INI file for the LabVIEW development system to the .ini file for the application. You may need to modify these preferences to be appropriate for the application.

Note Note  When running the application, make sure no other application, including the LabVIEW development environment, uses the same port.

Use the niwebserver.conf file to configure other Web Server functionality in the application, such as the root directory of the Web Server.


Not Helpful