Example Code

Escape the maze in LabVIEW (fun state machine game example)

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 VI utilizes an event based state machine to recreate an old school text based maze game.

 
Description
This code utilizes an event based state machine to recreate an old school text based maze game. This is entirely implemented with only 5 states and two events (one of which is the quit event!) 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Open maze 2012 NIVerified.lvproj
  2. Open and run Main.vi
  3. Try and escape by pressing the arrows.

 

Additional Information or References
VI Block Diagram

 5-78.png

 

 

 

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

Ian S
Applications Engineer CLA
National Instruments UK&Ireland

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