LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display the linear equation of a graph?

Hey all,

 

Do you'll know how I can display the equation of a linear graph, ie. y=mx+c

I have already plotted the graph and I wish to display the equation of the graph.

In MS Excel you could display the equation and I am trying to do something like that in LabVIEW.

Is it possible?

 

Thanks for the help

 

Regards,

Ruben

 

0 Kudos
Message 1 of 6
(3,868 Views)

Hi,

I think the best way is to programatically change the caption of the graph.
1) calculate the coeffs (m and c) of your linear plot
2) build a string such as "my equation is y = m%s + %s"
3) Change the caption of the graph (property node) with this string

 

You can place the caption where you want on the graph.

 

Best regards,

 

V-F
Message 2 of 6
(3,846 Views)

Thanks V-F. 

 

It did solve the problem. Appreciate your help.

 

Thank you!

 

Regards,

Ruben 

0 Kudos
Message 3 of 6
(3,837 Views)

Hi,

please close the thread by setting it solved !
Regards

V-F
0 Kudos
Message 4 of 6
(3,812 Views)
I want to linear equation graph of y = 2x + 4 in microsoft excel. How do I
do this? On my TI-83 Plus I could easily do this. I also know I could create
a data table and use the table of values to chart the line in excel. But I
want just enter the equation in excel and have excel graph it. Thanks.
0 Kudos
Message 5 of 6
(3,769 Views)

This is a LabVIEW forum. If you need help with excel, I am sure there is a better place to ask.

0 Kudos
Message 6 of 6
(3,763 Views)