Example Code

Simple Error Handler with Beep 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
This example demonstrates how to add a beep in case of an error in the VI.


Description
In LabVIEW you are able to generate sounds based on conditions that can be triggered programmatically. This VI takes the functionality of the Simple Error Handler provided in LabVIEW and adds a system beep when an error occurs. It has all of the same inputs/outputs as the Simple Error Handler, but it adds the beep.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download the attached files to your computer
  2. Open the VI "Simple Error Handler with Beep LV2012 NI Verified.vi"
  3. Select an error code, the status and the source
  4. Run the VI
  5. Hear the beep

 

Additional Information or References

VI Block Diagram

Simple Error Handler with Beep LV2012 NI Verified.png

 

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

Stephen Meserve
National Instruments

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

Comments
Todd S.
NI Employee (retired)
on

could you please rename your attachment to include LabVIEW version? "_lvXX.vi" is good enough.

Todd S.
LabVIEW Community Manager
National Instruments