LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

filter empty output

Hi everyone.

 

I'm new to the forum and quite new to LabView, so excuse me if my question is stupid.

 

I'm expecting a problem with a VI i did and i can't understand where i do wrong. I'm tring to filter a signal with a bandpass filter. I use the Butterworth Filter block but something goes wrong: the output vector is empty whatever i do.

 

Can someone figure where's the problem?

 

I attach a simplified VI with the part of the VI that doesn't works. Even this simplified version doesn't work.

 

Thank you vey much

0 Kudos
Message 1 of 8
(2,808 Views)

Did you look at the explanation for the error code?  It indicates that the frequencies do not meet the requirement 0 < f_low <= f_high <= fs/2.

 

It appears that you are specifying the sampling frequency as 1/2000 = 500 microhertz. Is this what you intended?  It certainly violates the inequalities.

 

Lynn

0 Kudos
Message 2 of 8
(2,802 Views)

Yes, that's correct.

 

I acquired the data at 2000 Hz. I made the spectrum of it and now i want to "extract" the frequencies between 10 and 20 Hz.

 

In this VI i've simulated this, but the "original" VI applies this operation to a real civil measurement done at 2KHz where i want to extract the time history of the resonant frequency to measure the dissipation coefficient.

 

Am I doing it in the wrong way?

 

PS: i didn't checked the error code because i couldn't find where to find it. Can you please tell me where you found the meaning of that error?

0 Kudos
Message 3 of 8
(2,797 Views)

Sorry. I didn't understood what you were saying. I corrected the VI removing the 1/x block. (It was there since i used the same costant for the "dt" parameter in the waveform build tool)

Now it's true 10 < 20 < 2000 /2.

 

Moreover (in the "simple version") i switched the hi and the low cutoff freq. 

 

Thanks for your help, it was a stupid error, but i could solve it.

 

 

For future use, where you saw the error explanation? It would have helped me...

0 Kudos
Message 4 of 8
(2,791 Views)

Look at your inputs! Besides specifying the wrong fs, your high cutoff frequency is 10 and the low is 20. That is backwards.

0 Kudos
Message 5 of 8
(2,788 Views)

Yes, i saw while you were answering 😉

 

Thanks really really much for your help, it was a stupid error, but i couldn't solve it.

 

 

For future use, where you saw the error explanation? It would have helped me...

0 Kudos
Message 6 of 8
(2,785 Views)

Look at your menus. Help>Explain Error. Right below the LabVIEW Help.

0 Kudos
Message 7 of 8
(2,782 Views)

@Pj89 wrote:

For future use, where you saw the error explanation? It would have helped me...


You could also use the Bundle By Name to put the error code into the code and use the Simple Error Handler


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 8
(2,770 Views)