View Single Post
  #1   Spotlight this post!  
Unread 18-06-2010, 19:31
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
GUI: locating mouse on graph indicator

I'm working on another non-FRC project. The idea is that you can draw a waveform on a graph, and hear it played. However, instead of drawing a continuous curve, I figured it'd be easier to just select some points, and spline fit between them.
So, part of that involves converting the location of the mouse into the point on the graph, and that's where I'm having some trouble. It mostly works, but there's some scaling and offset issues.
I've attached the subVI and the testing VI.

NOTE:
If you do not understand control references, event structures, and property nodes, the code may be quite confusing.

EDIT: I forgot the attachement. Thanks Tanner.
Attached Files
File Type: zip TESTER (point clicked on graph).zip (26.0 KB, 35 views)
__________________
-- Marshal Horn

Last edited by kamocat : 18-06-2010 at 22:20.
Reply With Quote