02-09-2011 04:33 AM
HI all,
i want say if can display a plot name when the mouse coursor select a line on the plot area.
02-10-2011 06:29 AM
Hi Loopin3,
you cannot do that.
Ciao!
02-10-2011 08:00 AM
@sisu84 wrote:
Hi Loopin3,
you cannot do that.
Ciao!
![]()
Well maybe you can't* but it is possible and it requires quite a bit of code to support it. I think there was challenge ove on the LAVA side. since then NI has added the invoke node "Map Coordinates To XY" that can be used in an event structures set for mouse move. Some complex arithmetic to find the plot with the nearest data point, and you get the name of the plot.
To display the name, put the name in a string indicator with background set transparent and position the indicator over top of the chart.
So I think it CAN be done.
Ben
* I have been a big fighter of the phrase "you can't do that" when applied to LabVIEW. They used to say the same thing about controls on the fly but I delivered my first version of that more than five years ago.
What you can't do in LV, is dump the code as C.
02-11-2011
08:13 AM
- last edited on
01-29-2025
02:02 PM
by
Content Cleaner
If you want an example of this behavior implemented in LabVIEW, check out LabVIEW SignalExpress. If you click on a signal in a graph, it highlights the signal source and destinations in the step view, telling you what the signal is. It is implemented exactly as Ben described.
@Ben wrote:I have been a big fighter of the phrase "you can't do that" when applied to LabVIEW.
I would like to second this comment, as well. Since LabVIEW has a huge amount of native functionality, new programmers tend to forget that LabVIEW is a fairly complete general purpose language. While there are a few very esoteric things I have been unable to do in LabVIEW, this has never prevented me from getting LabVIEW to accomplish my programming task. A couple of interesting examples are setting tab order on complex GUIs, including the dynamic subpanels, and handling huge data sets. If you seriously program in LabVIEW, you will run into these challenges, just like you would in any language. You will be able to meet them. Half the battle is knowing you can.