LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to show numeric values (labels) on the graph

Solved!
Go to solution

Hi,

 

I have been searching for quite a time but cudnt find a solution. I have shown an array on the graph. Now I want to show the numeric values of the 

array points on the graph so that I dont have to always use a curser to know the XY co-ordinates while moving across the graph. How can I do that?

While searching on the forum I found , it can be done with waveform chart. Can we do it with graph as well? In Microsoft excel, option is there for this.

Thanx.

 

Vipin
0 Kudos
Message 1 of 11
(9,035 Views)

You can do that with the XY graph also but not the same method. Since XY graph is an array of cluster you can pass that into a for loop (or index a single element) and display the value near the graph. If you are OK to use the Chart then you can directly use the Digital dispaly option,

 

 XYGraph_Digital display.png

 

XYGraph_Digital display_FP.png

 

Good luck

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 11
(9,031 Views)

@ P Anand

 

Thanks a lot for the response. 

 

" You can do that with the XY graph also but not the same method. Since XY graph is an array of cluster you can pass that into a for loop (or index a single element) and display the value near the graph. "

 

Thats what, I dont know how to show it on graph. Like using digital display option for chart, how can I show values on graph. Please suggest.

 

 

Vipin
0 Kudos
Message 3 of 11
(9,026 Views)

Did you try doing the things what I showed you in the Image?. If you need a better solution attach your vi where you want to display the digital data. Check the vi for an example.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 11
(9,024 Views)

I've not tried this to check feasibility, but could you use annotations to identify each point and generate a string representation of the point coordinates?

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 5 of 11
(9,016 Views)

@P Anand

 

I uderstood sir, 

 

Please have a look on attached image (front panel of my VI). I have edited it in paint. I want something like this. I want X-axis values shown on the graph.

As shown in the image, Numerical values of blue colour graph (i.e. peak position of the yellow graph ) is directly shown over it. Please let me know if I am still not clear.

Thanx. 

Vipin
0 Kudos
Message 6 of 11
(9,012 Views)

@ Thronic

 

Thanx for the insight. Smiley Happy It seems to make sense. I will try it. In case I am not able to do, could you please give it a try. ?  

Vipin
0 Kudos
Message 7 of 11
(9,004 Views)

A quick knock-up might look like this:

 

Example_Annotations_1.jpg

 

You can disable the arrows and point symbols if you don't need them, just inspect my block diagram to see how.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 8 of 11
(8,997 Views)

@Thronic 

 

Thanks a lot but I am not able to open the VI as I have Labview 8.6 with me. The file you uploded is of later version. Can you please upload 8.6 compatible file. Also, can we feed data to the annotation so if, as mentioned in the PIC uploaded by you, peak position changes annotation position also changes on its own. 

Vipin
0 Kudos
Message 9 of 11
(8,980 Views)
Solution
Accepted by topic author Vipin_Saklani

Here you go, LV 8.6 (untested)

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 10 of 11
(8,973 Views)