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: 

Calculating cutoff-frequency, bandwidth, impedance from given x/y-array

Solved!
Go to solution

Hello,

i have two arrays representing the measured frequency and voltage data.

Is there in labview something already included to calculate these values:

1. cutoff-frequency

2. bandwidth

3. impedance

 

Thanks for help

 

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

I don't think Labview has anything that does that, you'll have to make your own code.  The bandwidth and cutoff frequencies shouldn't be too bad.  Just scan the array and remove any values that are 3dB (0.707) below the max, or whatever your cutoff is, and then you can use the statistic VI and get the first value, last value, and range. 

 

The impedance will be a whole different matter, not sure the best way to go about that. 

 

Hope that helps

Message 2 of 6
(3,492 Views)

I have now two x/y-values for each frequency.

x: 100 / y: 0.702

x: ??? / y: 0.707

x: 120 / y: 0.712

 

How can i calculate the needed x-value for y=0.707 which is between these two values?

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

you need to do some interpolation 🙂

 

just hit Ctrl-Space to call Quick drop , enter interpol...   and you get a selection of possible ready made vis

Choose some of them, read the help  and use the one that fit your needs

 

Another way is the :

 

Threshold 1D Array Function

Owning Palette: Array Functions

Requires: Base Package

Interpolates points in a 1D array that represents a 2D non-descending graph. This function compares threshold y to the values in array of numbers or points starting at start index until it finds a pair of consecutive elements such that threshold y is greater than the value of the first element and less than or equal to the value of the second element.

 

If you cut an approriate portion of your data, this would work.

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 4 of 6
(3,443 Views)
Solution
Accepted by topic author OnlyOne

All of the vis only interpolate the y-value. But i neeeded the x-value for a given y.

Meanwhile i found the correct formula

 

X = ( (Y - Y1) * (X2 - X1) )  / (Y2 - Y1) ) + X1

0 Kudos
Message 5 of 6
(3,428 Views)

@OnlyOne wrote:

All of the vis only interpolate the y-value. But i neeeded the x-value for a given y.

Meanwhile i found the correct formula

 

X = ( (Y - Y1) * (X2 - X1) )  / (Y2 - Y1) ) + X1


Where is the problem to swap X and Y ???

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


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