09-08-2010 05:05 PM
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?
09-08-2010 05:16 PM
09-08-2010 11:41 PM - edited 09-08-2010 11:45 PM
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.
09-09-2010 09:29 AM
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.
09-09-2010 09:33 AM
Then look at the second 'Etch-A-Sketch' example. There are two links there.
09-09-2010 09:35 AM - edited 09-09-2010 09:37 AM
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.
09-09-2010 01:18 PM
ahh cool, I didn't notice the 2nd link, thanks for pointing it out
09-09-2010 02:49 PM
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.