To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI shows how to use the producer/consumer architecture to queue up keyboard inputs in the producer loop and perform actions based on the input in the consumer loop.
Description
Use this template to build a producer/consumer design pattern with events to produce queue items. Use this design pattern instead of the User Interface Event Handler pattern for user interfaces when you want to execute code asynchronously in response to an event without slowing the user interface responsiveness.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**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.