Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Annotation's "D1","D2",... to be added to graph when points are added to graph....

hi ...
Good morning...
 
Text labels "p1","p2" , & so on ... should be named for points added to the graph for plot 1 only not all plots...  .
As in the graph when a particular point is ploted we can right click on graph & add annotation ... to mark tht point ...
but if we dont want user to do it manually.. & as the points will be  ploted in graph tht  points should be labeled  p1,p2,.respectively..... then how to go about it ...
I tried checking in property node .. annotation list is thr ... but all i want is just the point name to b changed for each point not other properties...
I am Using LABview 8.0
 
Waiting in anticipation ...
 
Regards
Yogan
0 Kudos
Message 1 of 2
(6,339 Views)
Hi yogan,

In order to do this you can read the AnntList property which will output an array of clusters. You can then modify just the Name value in a cluster and write it back to the AnntList property.  There is an example that ships with LabVIEW that demonstrates programmatically editing annotations.  You can find this in LabVIEW by going to the Help menu, and clicking on Find Examples.  Then browse to Fundamentals >> Graphs and Charts >> Programmatically Annotate a Graph.vi.  Specifically, pay attention to the "Avg" Value Change event in the Event Structure.  This shows how to modify the name of an annotation.

I hope this helps!
Brian A.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(6,322 Views)