Example Code

2-axis XY Motion Move Based on Free Hand Drawing on XY Graph

Code and Documents

Attachment

Download All

This VI uses an event structure and the NI Motion VIs to track the movement of a graph cursor and then write those movements to the motion card. Essentially, the motion card will mimic whatever shape is drawn on the XY graph with a cursor, by the user. This code can be the basis for various applications.

FreeDrawFP.pngFreeDrawBD.png

VI is attached in LabVIEW versions 8.6 and 2011

Requirements:

NI Motion Card

NI-Motion Driver

Directions:

1. Open VI

2. Select Board ID, Axis Assignments, Velocity, and Acceleration

3. Run VI

4. Use Cursor to draw shape

5. Click "Draw Moves"

6. Motion Card will draw the shape and user can see shape drawn on the accompanying XY Graph

Applications Engineer
National Instruments

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

Contributors