To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example shows how to implement a calculator based on software buttons, using the Event-Driven Producer and Consumer design pattern.
Description
The User Interface emulates a calculator keypad. These software buttons are triggered based on an Event-Driven Producer and Consumer design pattern and allows the user to add, subtract, multiply and divide two numbers.
Requirements
Steps to Implement or Execute Code
Additional Information or Resources
VI Block Diagram
**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.