To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example implements state machines and case structures to emulate a PIN machine like you might find on an ATM or similar system.
Description
Using the state machine architecture and an event structure can register key changes. The machine emulates the keypad and display that you might find on an ATM or home alarm system.
The user can enter 4 digit to match the password. If in-correct the VI returns to default If correct a green LED is lit and the 'Set' button is activated. On pressing 'Set' the user is now able to enter a new password and a red LED is lit indicating the VI is in the Set state. Once the new passcode is set, the VI returns to its default state
There is also a 'Clear' button that will erase the current input in case a mistake is made
Requirements
Steps to Implement or Execute Code
Additional Information or References
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.