From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

EtchSketch

Code and Documents

Attachment

Please be sure to  include at minimum the content and screenshots called out below.  Keep in mind  the judging parameters outlined in the Rules for Entry regarding relevance, function, documentation, readability, and   inter-operation.  Also remember to select the appropriate category(-ies)  and additional tags at the bottom of each submission. 

Summary:

This is a digital "Etch-o-Sketch" it allows you to draw on a XY graph, it demonstrates UI Design, good Local Variable use, Property Node use, data flow, and documentation.

Function:

Simulates an "Etch-o-sketch"

Steps to execute code:

  1. Click White arrow
  2. Use knobs or arrow keys to move the Horizontal or vertical knobs
  3. Use ctrl-h for help (Optional)
  4. Hit the clear button when you want a clean graph
  5. Hit the stop button when you are finished using the EtchSketch

Screenshots:

EtchSketch.jpg

VI Snippet:

etchsketch.png

VI attached below

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)

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

Comments
VuD
Member
Member
on

Thanks for the great submission Harold!  An etch-a-sketch - what a clever idea.  In order for people to more easily find your code, could you please change the title of this document from  "new Example Code Submission" to something more related to the nature of the vi?

Contributors