Showing results for 
Search instead for 
Did you mean: 

can labview draw like a pen or pencil?

I'm trying to set up a VI with x and y control, where I can use the x and y control to draw on the screen..... like an etch-a-sketch.  The picture controls have plenty of drawing tools for making lines, boxes, circles, arcs...etc.... but I can't find anything that would just trace the pixels as I go... if I could use the circle picture control to move a picture around the screen, like a blck dot, like a pen, where it would leave a trail whereever it was... that would be great.  Can labview do this?


much thanks!

0 Kudos
Message 1 of 8
The details may be a bit sketchy, but look at these: -AK2DM
"It’s the questions that drive us.”
Message 2 of 8

If you install the Code Capture Tool then you will have a drawing tool inside the preview window.

A simple version introduction is shown here, with the following basic code:




You will have to tweak this for offsets and window movement, but the ide is quite simple, just write each move event to the picture contol.




Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 8

I wish I could look at this etch-a-sketch, but I'm running labview 2009 and it says labview 5.1 is too old for it to open. 


The mouse solution seems cool, but I was looking for a program based drawing tool, where I could just enter x,y coord's. Not drawing with a mouse.


thanks all

0 Kudos
Message 4 of 8

Then look at the second 'Etch-A-Sketch' example. There are two links there.

0 Kudos
Message 5 of 8

Which "etch-a-sketch" example are you referring to? The second link provided by AnalogKid is in LabVIEW 2009? Also, the example using mouse events is just using the mouse to provide the coordinates, it could be done from knobs, arrays, etc.

Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5

LabVIEW Champion

0 Kudos
Message 6 of 8

ahh cool, I didn't notice the 2nd link, thanks for pointing it out

0 Kudos
Message 7 of 8

I apologize for the poorly formatted post. Internet has slowed to a crawl here, the message got corrupted and it would have taken me another 10 minutes just to edit or repost if I was lucky.



"It’s the questions that drive us.”
0 Kudos
Message 8 of 8