LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Map coords to XY

Hi everyone,

In LabView 8, even 7, the Invoke Node of a graph contains the method "Map Coordinates to XY". That is, it converts a pixelwise coordinates (ex. mouse click on graph area) to a graphwise coordinates. Unfortunately, in LabView 6.1, there is no such useful method. Does someone know an alternative solution? How can I convert pixelwise coordinates to graphwise coordinates.

Thanks for your help,
Joe

Click for cursor.vi




Joe
0 Kudos
Message 1 of 4
(3,902 Views)
I wrote this response a long time ago before I realized there were invoke nodes that would do the mapping for you. I haven't looked at this in a long time, so you should definitely doublecheck my methods and/or pixel math, but the basic idea seemed to work fine. This was designed for linear axes. You'll have to do a little work to make it work for logarithmic scales. Hope this helps!
Jarrod S.
National Instruments
0 Kudos
Message 2 of 4
(3,887 Views)

Here's another method, similar to Jarrod's method.

Note that you have to provide the origin of the plot area.


___________________
Try to take over the world!
0 Kudos
Message 3 of 4
(3,880 Views)
Thank you all. I finally succeed with your help! Thanks again!
Joe
0 Kudos
Message 4 of 4
(3,843 Views)