LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Obtaining the formula for an XY graph

Hi!
Sorry for the basic question:
Using labview 8.5, developer suite. I have the X and Y inputs for an XY graph (in (sub)array form), I also have the XY graph outputting well. I need to take the gradient of this graph, so I am trying to use NI_Gmath.lvlib:Differentiation.vi however this needs the formula of the graph! I can't for the life of me think how to get this in the form it wants (string)
 
Any ideas?
 
Thanks
Jon
0 Kudos
Message 1 of 3
(2,681 Views)
Hi Jon,

the gradient usually is calculated by delta(x)/delta(y), so:
- calc the delta of x- and y-array
- divide both results

This will give you the "gradient" pointwise. You may now calc the mean value, if applicable...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,677 Views)
Ah obvious really, I think I must just have got wrapped up in using the standard vi's and forgetting you can do it simply mathematically!
 
Thanks
Jon
0 Kudos
Message 3 of 3
(2,675 Views)