Example Code

How to antagonize HAL 9000

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

The code is very simple: it uses mouse move UI events to control the light source of a 3D picture control. A timeout event was used to create the “pulsing eye” effect.

 

Description

From the idiotic developer who brought you Teasing Homer Simpson, comes a new app which allows you to antagonize an all together more formidable foe; HAL 9000 (the villain from Arthur C. Clark’s epic science fiction saga, Space Odyssey – and Stanley Kubrick’s seminal, movie adaptation, 2001: A Space Odyssey). Please note that, in order to make the code programatically efficient, an event-based architecture was selected. On order to modify the events handled by this application, you will require full or professional versions of LabVIEW.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI.
  2. Move the mouse around the front panel. Notice how the iconic, red-eye follows your movements around the user interface (UI).
  3. If you do not move your mouse cursor for a couple of seconds, HAL will get agitated; causing his eye to throb and pulse is a deeply unsettling manor.
  4. Once you feel that you have antagonized HAL (and his eerie electronic eye) enough, hit the F10 button to stop the application.

 

Additional Information or References 

Front Panel

Front Panel.jpg

 

 

VI Snippet

132.png

 

 

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

 

Rich Roberts
Senior Marketing Engineer, National Instruments
Connect on LinkedIn: https://www.linkedin.com/in/richard-roberts-4176a27b/

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