LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

graphs

Solved!
Go to solution

HI,

I want to see the values of graph points during mouse hover. But sometimes it is not showing the values when placed at graph points ..

Also when zoomed in it shows values at those places where graph points are not present.. 

So what will be the required modifications  in this following vi.

Download All
0 Kudos
Message 1 of 7
(3,847 Views)

You need to include your subVI too. "Mouse in-bound coordinates.vi"

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 7
(3,657 Views)
Message 3 of 7
(3,642 Views)

Thanks.

 

FYI, you need to add a case to the event structure for the Stop button value change. Currently can't stop the VI with that button.

Also, you should use your event data when you can. In this instance you can see the mouse coordinates already in your event structure. These match the "mouse inbound coordinates" that you output from your subVI, so you didn't need to do all of that math:

Coords.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

It looks like your code only shows the value when the cursor is nearby a plot on the graph and seems to do this pretty well.

Here are a few improvements I would suggest:

  • Hide the "String" label on the string that you show and move around. The label looks funny and gets in the way.
  • Change your input for precision of the string indicator to be 1 or 2 instead of 0. Zero is causing your numeric values to show up with no decimal places so they are just being rounded to the nearest. This may be causing your confusion with mismatching values.
  • It won't show values if your mouse is over the string indicator that pops up. I would suggest moving the string indicator to a point below the cursor, farther from where the user will be putting it, that way it doesn't get in the way as the user is moving. Just add values to the Position property before you write it.

 

 

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 4 of 7
(3,629 Views)

When the graph is zoomed the values are not shown properly. How to tackle it? and many times it starts to flicker when graphs are close and values cannot be seen..In my main code there are around 10 plots on graphs having numeric value ...n values of those graphs are quite close so the user has to  zoom in the graph...how to tackle it? The size of graphs is same as in eg.. 

0 Kudos
Message 5 of 7
(3,617 Views)
Solution
Accepted by topic author Reshu

I am seeing the values shown properly when zoomed. I think you are still seeing the rounding issue. Change your precision inputs on your two Number to Fractional String nodes to 2 instead of 0.

Zoomed.PNG

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 6 of 7
(3,601 Views)

Hi ,

 

I have modified the vi a little.

The array have high values so the mouse hover is not working properly over here. In the last vi the values were less, but now it is getting fully tossed.

Can anyone help me regarding the same?

 

0 Kudos
Message 7 of 7
(3,498 Views)