Example Code

The Amazing Christmas 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

Overview:

This example is a funny game about the speed of human reaction. Press stop the reindeer to line up the reindeer.

 

Description:

 

This VI is a Christmas game to test the speed of  human reaction. Press stop the reindeer button to line up the reindeer. And the speed of reindeer will be faster and faster. Finally, a dialog box displays about the results. You can slow down the speed by change the counter in block diagram. Implemented a 2D array which has made the code a lot clearer and salable.

 

Requirements:

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI.
  2. Press stop the reindeer button when the reindeer cross from left to right. You must line up the reindeer.
  3. Displays a dialog shows the results.

 

Additional Information or References 

Front Panel

160.1.PNG

 

VI Snippet

160.png

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

 

Dan Vickers - Applications Engineer UK and Ireland

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Alex.T
Active Participant
Active Participant
on

No, I can't line up the reindeer.


Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

ToNTi
Member
Member
on

How to set The speed of the image.