09-06-2009 11:52 PM
Hello all,
I had a problem with chart.Actually i need to plot values between 0-255 and i could do that,but the problem is,everytime i plot one value,i should display the value right on the chart and at the point itself in the form of text.The problem can be summarised as putting some text on chart .Can anyone please help me come out of this problem?
Thanx in advance,
srikrishnaNF,
Analysis Engineer.
09-07-2009 12:05 AM
Inorder to acheive this you can make use of the feature called "Annotations". Configure the annotations dialog box in the right click of the graph and keep updating the annotations programatically.
To start with..have a look into this page
For working stuff model look into this example vi: C:\Program Files\National Instruments\LabVIEW 8.x\examples\general\graphs\Programmatically Annotate a Graph.vi
Cheers
Post back for queries
09-07-2009 12:17 AM
09-08-2009 07:24 AM
Hi,
If you're insistent on using a Chart in your program, I assume you need dynamic updation and thus, it is surmisable why you want annotation. However, it's not possible to place cursors on your Chart the way you can in Graphs.
What you can alternatively do is use your Graph in a way such that it allows dynamic strip-like updation the way Charts allow. Refer to this link for the exact code: http://decibel.ni.com/content/docs/DOC-4770
After you have done this, you can use annotation and it should serve your purpose.
Regards,
Vaibhav.
10-07-2009 05:41 AM
Hi vaibhav,
Thanks for the Idea.But actually in my application i am receiving some data which varies 0-255 and should be displayed in the form of numbers.It should display as text whenever my application gets the data as it is...
Can you give me a good idea?
Thank oyu very much
srikrishna.J
10-07-2009 11:07 PM
Like I said, for annotation you can use graphs, not charts. If you use a graph the way it's shown in the link, it could solve your problem. I suggest you try it out and if there are any particular issues with the code, you post them here.
Vaibhav.
10-07-2009 11:07 PM