LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How linear regression of -20 dB on the graph?

Hello

 

I'd like to do a linear regression of -20 dB and -30 dB on a graph, could someone tell me how I should go about it?

 

Thank you

0 Kudos
Message 1 of 19
(3,866 Views)

Hi,

 

You can try out with Linear Fit.vi or Logarithm Fit.vi

 

BR,

Vincent

0 Kudos
Message 2 of 19
(3,863 Views)
Hi Vincent I tried but I want to make a point of interval on my chart. G.ORKIA
0 Kudos
Message 3 of 19
(3,843 Views)

Hi G.,

 

I want to make a point of interval on my chart

Just create this point!

 

Questions as usual:

- What exactly is the problem?

- Mind to attach an example VI?

- How do you want to interpolate? (linear? logarithmic?)

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 19
(3,838 Views)

Simply create this point!
The point can vary so how can I do?

Questions as usual:

- What is the problem exactly?
I have a graph with a fall in dB versus time, to be precise in our calculations, I am asked to study the curve with a drop of -5 dB maximum point (initially we have a tray so to -5dB from the tray) and then I have to do a linear regression of all the points for a fall to -20 dB and the exact same thing to -30 dB.

- Spirit of attaching an example VI?
My vi is not yet finished, infact I can not even see my graph because I'm not in good conditions.

- How do you want to interpolate? (Linear? Logarithmic?)
What is interesting to me is the linearity points
.

0 Kudos
Message 5 of 19
(3,833 Views)

Hi G.,

 

I am asked to study the curve with a drop of -5 dB maximum point (initially we have a tray so to -5dB from the tray) and then I have to do a linear regression of all the points for a fall to -20 dB and the exact same thing to -30 dB.

It REALLY would help when you would attach an image of what you're talking about!

 

What is interesting to me is the linearity points

What are "linearity points"?

LabVIEW comes with functions for linear regression…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 19
(3,825 Views)

I let as an attachment that I must have.


I have to study the curve at -5 dB of the maximum, so here we consider the curve from only 75 dB, then make a linear regression of 75 dB to 55 dB (-20 dB drop), but also 75 dB to 45 dB (-30 dB drop).
I use linear regression function but I do not see how I can not tell him each time to each point.

thank you very much for your help

0 Kudos
Message 7 of 19
(3,817 Views)

Hi G.,

 

I do not see how I can not tell him each time to each point.

Linear regression takes X and Y values as input.

So where is the problem to provide your x (=time) and Y (=db values) to this function?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 19
(3,810 Views)
the problem is not at this level, but how it can make a linear regression for only part of the curve. I may have badly worded my question.
0 Kudos
Message 9 of 19
(3,807 Views)

Do a linear regression on a subset of the array.  Pick the part of the array that is within the limits you want.

0 Kudos
Message 10 of 19
(3,804 Views)