From 08:00 PM CDT Friday, August 12 - 01:00 PM CDT Saturday, August 13, will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Scripting in LabVIEW Web Services

Code and Documents


Download All


LabVIEW Web services allow you to run Embedded Server Pages (ESP) scripts that generate dynamic content, such as an HTML interface, on the LabVIEW Web Server. ESP is a scripting language created by MbedThis and supported by the LabVIEW Web Server. ESP has a similar structure and functionality as Javascript.

Creating ESP Scripts

ESP scripting works with the LabVIEW Web Server architecture. The following white paper provides information about how ESP scripting works and how to create ESP scripts. 

 LabVIEW Embedded Server Pages Reference White Paper (labview_esp_reference.pdf)


Using ESP Scripts in a Web Service (Example)

The following example project demonstrates ESP scripts in a LabVIEW Web Service.

 LabVIEW ESP Demonstration ( Demo.lvproj)


Related LabVIEW Web Services Documents on

Introduction to LabVIEW Web Services
How to get started with server-side Web services in LabVIEW 8.6 or later

LabVIEW Web Services Help
Official documentation for LabVIEW 8.6 Web Services.

LabVIEW Web Services Online FAQ/White Paper
Additional information and answers about the new LabVIEW Web services feature.

LabVIEW Web Services Security
Additional information on securing your Web service.

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