From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,291 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,287 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,285 Views)