Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Enabling the Web Server in Stand-Alone Applications

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

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.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit