From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

LabVIEW Web Services Error Handler

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
To be used as a subVI to display error when testing your Web Service application

Description:
This VI can be used to display errors to the user when testing your Web Services.  It's done by checking for an error and flushing the error code to the browser.

Steps to implement or execute code
To implement this example:

  1. Use this VI as a subVI.

To execute this example:

  1. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

2017-11-01_11-12-55.jpg2017-11-01_11-13-04.jpg

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

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