LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How linear regression of -20 dB on the graph?

Like Ravensfan said, you most likely have your data as a 1D or 2D array, just use the "array subset" function at the graphic points you're interested in, send that as an auto-indexed tunnel to a for loop with the regression function and have the result output as an auto-indexed tunnel too.

0 Kudos
Message 11 of 19
(1,776 Views)

Ok thank you very much for your reply, I try to do this right away !!

 

G.Orkia

0 Kudos
Message 12 of 19
(1,771 Views)

There is something I do not understand how I can select the points that interested me from a graph?

 

G.Orkia

0 Kudos
Message 13 of 19
(1,766 Views)

I don't know.  As a person, how do you know what points interest you on the graph?

Once you know that, you can figure out how to program it.

 

If you are looking for something where the points have an X-value between 10 and 20, for instance, search the array for the first point that is 10 or greater, then the first point that is greater than 20.  Now you'll have 2 indices.  I1 and I2.  Use array subset where you start at I1 and the length is (I2-I1).  Do the regression on that subarray.

 

If there is some other criteria that determines what points are interesting and which aren't, then you'll have to work out a different method of selecting points out of the array.

0 Kudos
Message 14 of 19
(1,763 Views)
We want to study the 5dB points below the maximum, so make a regression to a fall of -20 dB and -30 dB. The problem is precisely that the values always change according to the try that we do, so I can not say ps at what points.
0 Kudos
Message 15 of 19
(1,757 Views)

Okay.  So where is the problem?

 

What I proposed is how you analyze it once you've got the data.  Find the maximum.  Subtract 5 dB.  Use that as your criteria when you search the array.

0 Kudos
Message 16 of 19
(1,755 Views)

Pleas note that these aren't even LabVIEW questions so far...

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 17 of 19
(1,751 Views)

Hi 

I have the impression that this is telement easy, but I really galley understand how to select an maximum point from a graph therefore a table, is there a function capable of that. For me the best way is to write a matrix but I'm really bad.

 

G.Orkia

0 Kudos
Message 18 of 19
(1,727 Views)

Hi G.,

 

THINK DATAFLOW!

You don't select a "maximum from a graph" as a graph is an indicator (data sink)!

 

You should have an array as data source - that's the place (data source!) you have to look for your maximum!

 

And well, there is an ArrayMinMax function in the array functions palette…

 

For me the best way is to write a matrix but I'm really bad.

No, you don't need matrizes for this. (They are a special datatype in LabVIEW!)

All you need are arrays, one with Y values, one with corresponding X values…

Best regards,
GerdW


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