09-27-2012 06:57 AM
Any way of using the mouse cursor to select and get the value of a value of a waveform graph and/or chart similar to the function available in Matlab..?
If there's no specific method, any workaround?
09-27-2012 07:30 AM
Not sure I understand your question. Graph and charts have built-in cursors...
09-27-2012 07:40 AM
@smercurio_fc wrote:
Not sure I understand your question. Graph and charts have built-in cursors...
I'm looking for the ability to get an instananeous value of a chart/graph by hovering the mouse over the value of interest. I've experimented with the graph's cursors but they're a bit clunky in terms of their operation
09-27-2012 07:43 AM
Ah, well, for this you have to write it yourself. You can do this using an event structure. In this response I showed a simple way to do this for a mouse up, although you can do the same thing with the mouse move event. What you put in the True case is really up to you. You could update some text indicators, or you can use graph annotations.
09-27-2012 07:47 AM
There are some methods that should help.
"Get Plot at Postion"
"Map Coordinates to XY"
Ben
09-27-2012 08:19 AM
@smercurio_fc wrote:
Ah, well, for this you have to write it yourself. You can do this using an event structure. In this response I showed a simple way to do this for a mouse up, although you can do the same thing with the mouse move event. What you put in the True case is really up to you. You could update some text indicators, or you can use graph annotations.
YES! Just what I was looking for!
Any easy way to display the value of the waveform graph besides from in the cursor legend?
I'm thinking something like a label (or text indicator as you've suggested) that pops up beside the position of the cursor with the Y value of the cursor.
09-27-2012 08:19 AM - edited 09-27-2012 08:30 AM
Have a look at the enclosed VI.
Change the mouse click to mouse move if that is what ou need.
Edit: Ben was faster than me
For the text you can play with the cursor name.
Edit2: Actually the XY indicator shows the mouse coordinates, not the curve's one.
Just retrieve the cursor position after moving it.