LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Placing a Y-value in the form of text on a strip chart programmatically?

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.

  

Regards,
Srikrishna


0 Kudos
Message 1 of 7
(2,966 Views)

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

 

CheersSmiley Happy

Post back for queries

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 Kudos
Message 2 of 7
(2,963 Views)

Hello all,

 Thank you JK1 for your reply.But i need that annotation facility or atleast i should tweak it on chart,not on graph.As in my Application i am using only chart...

Regards,
Srikrishna


0 Kudos
Message 3 of 7
(2,957 Views)

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.

0 Kudos
Message 4 of 7
(2,923 Views)

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

Regards,
Srikrishna


0 Kudos
Message 5 of 7
(2,845 Views)

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.

0 Kudos
Message 6 of 7
(2,833 Views)
Also, please unmark your own post as the solution.
0 Kudos
Message 7 of 7
(2,832 Views)