Example Code

Etch a Sketch in LabVIEW

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

Description

1. Overview

This VI looks very similar to an Etch - a - Sketch. It uses the picture control toolkit to create an image and add points to update the picture with the press of a keyboard button.

 

2. Description

Etch A Sketch is a mechanical drawing toy invented by André Cassagnes of France and subsequently manufactured by the Ohio Art Company and now owned by Spin Master of Toronto, Ontario, Canada.
An Etch A Sketch has a thick, flat gray screen in a red plastic frame. There are two white knobs on the front of the frame in the lower corners. Twisting the knobs moves a stylus that displaces aluminum powder on the back of the screen, leaving a solid line. The knobs create lineographic images. The left control moves the stylus horizontally, and the right one moves it vertically.

 

3. Requirements

  • NI LabVIEW Base Development System 2012 or compatible.

 

4. Steps to Implement or Execute Code

  1. Download and open the example VI.
  2. Run the VI.
  3. Click F1, F2, F7, or F8, to draw in the board. You can also use the boolean buttons.
  4. Press the Shake button to reset the drawing.
  5. Press the Stop button to finish execution.

 

5. Additional Information or References

Etch a Sketch FP.PNG

 

Etch a Sketch Screenshot.PNG

 

 

**The code for this example has been edited to meet the new Community Example Style Guidelines.**

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support

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