Example Code

Programmatically change the Web Server Root Directory using LabVIEW

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

  • LabVIEW

Code and Documents

Attachment

Overview

Use this VI to programmatically change the Web Server Root Directory that is normally changed from the LabVIEW Options window.

 

Description

This program shows how one could programmatically change the Web Server Root Directory that is normally changed from the LabVIEW Options window.

Ensure that the program has finished writing to the file and that the file is closed without error before doing anything with LabVIEW Web Services (Remote Front Panels, etc.).

 

 

Requirements

  • LabVIEW 2012 (or compatible)

 
Steps to Implement or Execute Code

1.Select niwebserver.conf file
2. Insert the new root directory
3. Run VI

 

Additional Information or References
Block Diagram

 Change web server path LV2012 NI verified.png

 **This document has been updated to meet the current required format for the NI Code Exchange.** 

Joshua B.
National Instruments

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