Example Code

Use Keystroke to Change Status of a Control in 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

Code that allows us to change the status of a control using the "End" key.

 

Description

This VI uses a Property Node called "FocusKeyBind" to map a keyboard stroke to a control on the Front Panel.

 

The VI then polls for this keystroke and updates the value of the Stop control when the 'End' key is pressed.

 

Requirements

LabVIEW 2012 or compatible

 

Steps to Implement or Execute Code
1. Run the VI
2. Press the End key on your keyboard


Additional Information or References

 Capture.PNG

**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.