Example Code

Magic Game

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

Download All

Overview
This simple example shows how to play a game of identifying the number.

 

Description
This game is used to show identifying the number in mind. The rule is to keep one number in mind. Then click the button which has the number. Finally see the number in the display place.

 
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Run the VI.
  2. Keep one number in mind.
  3. Ask which column contains the number and click the buttont just below it.
  4. Repeat step 2 three times and your number will get displayed below.

 

Additional Information or References
VI Block Diagram

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