09-13-2011 10:19 AM
Hello all - I'd like to use as graph as a control, not as an indicator. That is, I'd like to display a set of points on a graph and then let the user adjust them as they see fit, by dragging the points around the graph.
I've seen something exactly the same on my graphics card driver, where I can adjust the gamma by dragging the middle point around the graph. (see pic below)
I'm sure someone's done this before, but I can't find any examples, references in the firum. Any ideas, anyone?
Many thanks,
Jon.
Solved! Go to Solution.
09-13-2011 10:30 AM
I doubt anyone has done this before.
You can convert the Graph Indicator to a Control, but not change the wire and it's value.
I'm not sure how or if that would be possible.
Certainly would be an interesting coding challenge.. 🙂
09-13-2011 11:27 AM
Here is my 1st attempt after a few minutes. Probably not perfect, but it seems to work
09-13-2011 12:39 PM
Many thanks Bryan - just what I was after! 🙂
09-13-2011 12:43 PM
No problem.
I figured it was at least a step in the right direction.
09-13-2011 01:23 PM - edited 09-13-2011 01:24 PM
@_Bryan wrote:
Probably not perfect, but it seems to work
Let me clear up some misconceptions you seem to have.
Many improvements are still possible, this is just a simple refactor of your code.
(There is also shipping example that allows drawing directly on an xy graph without the use of cursors.)
09-13-2011 01:28 PM
This is why you are the man altenbach!
09-13-2011 02:18 PM
Wow... I learned something today..
That's what I love about this forum. There are no limits to what you can do with LabVIEW...
Thanks for posting the solution Bryan & Altenbach..
09-14-2011 09:55 AM
I prefer to use events.
09-14-2011 10:21 AM
@paul_a_cardinale wrote:
I prefer to use events.
Could you save the vi as 8.6 or 9? Budget cuts killed my support contracts