Example Code

LabVIEW-A-Sketch

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

Code that simulates an Etch-A-Sketch.

 

Description

This example simulates the behavior of an Etch-A-Sketch built in LabVIEW with a XY Graph and a couple of knobs.

In order to draw on the graph, we need to move the knobs. The erase movement is also simulated when the Erase button is pressed.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Run the VI
2. Move the knobs to generate a drawing
3. Clear the graph with the Erase button
4. Stop the VI

 

Additional Information or References

 Capture.PNG

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