01-04-2020 06:56 AM
Discrepancy between Coords (from Event Data Node) and Coords 2 (mouse axis info – PF.PaneBounds)
I am using LabView 2018. I clicked at 6000 and 6 on XY Graph. The value of XY indicator is correct, but the value of XY 2 indicator is not.
Horizontals between two are identical, but Verticals are different. Why? I need to use mouse axis. It is not working as supposed. It is a LabView bug or something that I miss. Can someone help me out?
Solved! Go to Solution.
01-05-2020 02:41 AM
I can't open your actual VI, but my guess would be that you scrolled the front panel down - the mouse down event returns the coords relative to the FP origin, regardless of how you scroll the FP. The mouse VI returns global screen coordinates, which means it will return different results for the same object in the VI if you scroll the FP.
In case this isn't the issue, I would suggest you try to debug it in an orderly fashion. Move things around (the VI, scrolling, etc.) one thing at a time and see how it affects the different values. This should allow you to see where the difference is.
01-06-2020 09:06 AM
01-07-2020 05:55 AM
Yes it works. Thank you so much.