Example Code

Adding Utility to the Append Control Image to Report.vi

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 code first listens for button presses on the keyboard. If the correct key is pressed, the program executes a Windows API call through user32.dll to increase, decrease, or mute the volume. 


Description
This example code first listens for button presses on the keyboard. If the correct key is pressed, the program executes a Windows API call through user32.dll to increase, decrease, or mute the volume.


Requirements

Software:

  1. LabVIEW 2012

 

Steps to Implement or Execute Code

  1. Run the VolumeMaster.vi
  2. Press F10 to lower the volume, F11 to mute, and F12 to increase the volume.

 

Additional Information or References
NI Snippet

1.png

 

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

Matt J | National Instruments | CLA

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