Example Code

Delete the buffer of the keyboard for the acquisition

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
To clear keyboard buffer from acquiring data from keyboard

Description:
If you want to acquire a pressed key on the keyboard, you must clear the buffer of the keyboard. You can delete the buffer using this subVI

Instructions:
To implement this example:

  1. Run VI


To execute this example:

  1. Install the required software.
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

2017-11-02_20-23-29.jpg2017-11-02_20-23-40.jpg2017-11-02_20-24-25.jpg2017-11-02_20-25-40.jpg

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

Comments
Chris_in_Colorado
Member
Member
on

Crazy that this isn't built in to labview - just one call.

Anyone else use any other method?