Example Code

Generate and then add to or augment an error message

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
This VI modifies the description of the error to include additional information.


Description
This code generates a built in error i.e. 356677, and then allows the error to be augmented with custom information, whilst still preserving the original error data


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Specify the Source in "Additional error information";
  2. Run the VI.
  3. Check the error popup window.

 

Additional Information or References
VI Block Diagram

 code.png

 

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

Chris | Applications Engineer NIUK

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