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

Reading Keyboard and Holding Keys

Code and Documents

Attachment

Overview

Demonstrate how to read and hold keys using Event structure and Acquire Input Data Function.

 

 

Description

This VI is useful for aquiring and monitoring the inputing string by keyboard. When the key pressed, the event structure responds immediatly and the input letter is passed to an indicator.

 

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download and unzip the attached folder to your computer
  2. Open the VI "Read Keyboard.vi"
  3. Run the program

 

Additional Information or References
VI Block Diagram of "Read Keyboard.vi"

 Block Diagram.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.