LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Level Measurement

Hi,

 

in my VI I need to measure the frequency and the level (possibly in dBm) of a certain tone which last about 500ms. With the instrument in my lab I have found that the tone is around -20 dBm and 1000Hz. I have tried different VIs for the signal processing but I don’t understand why they estimated the level always lower that the one check by the instrument (around -35 dB). I used the same VIs for other programs in which the duration of the tone is longer, about 2-3 seconds, and the level is checked correctly with a ±2 dB of difference. So the only factor that I can notice is that the tone is so short to cause problem to the Vis. So if someone knows the characteristics of the following VI:

 

  • Extract Single Tone Information.vi
  • FFT Power Spectrum and PSD.vi

And have some hints it will very helpful!

For sake of completeness i am using an USB-6211.

 

Thanks for the help!

 

Best Regards,

Zuc

0 Kudos
Message 1 of 5
(1,195 Views)

Hi Zuc,

 

it really would help when you would cleanup your VI and when you would provide some useful measurement data in your graph (by setting default values)!

 

Please see this snippet of your data analysis:

Use this as a subVI in your main VI. Run the main VI until there are useful data in the subVI, then stop the main and set all current values of the subVI as default. Re-attach this subVI so we can analyze your data!

Best regards,
GerdW


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

Hi,

 

here after the data you asked for the limit in dimension i have added them separated.

 

Thank you!

 

Best Regards,

Zuc

Download All
0 Kudos
Message 3 of 5
(1,154 Views)

Tonedetection would like to have more than 10 periodes, so it should be usefull for frequencies > 20 Hz (@ 500 ms duration).

However you should cut out the constant amplitude part 🙂

 

uncertainty increases for less periodes mainly due to leakage , so maybe a two step process for a cutout will help.

 

Another method is sine approximation (again for the constant amplitude part)

 

link to some info on tonedetection here

 

link to sinefitting paper

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 5
(1,139 Views)

Hi,

 

in my vi I measure a signal (duration around 500ms) and compute its FFT checking a frequency at 1000Hz. The vi works manually but when I call it more times in a sequence of TestStand I obtain the following warning which stop the execution until the operator close it (observe the screenshot). From other posts I read that this warning is related to the filter part which prompts the pop-up when you pass waveforms which havedifferent frequencies of acquisition or data which have no indication of the t0 (https://forums.ni.com/t5/LabVIEW/Error-20352/td-p/3133660). But each time that I call the vi the frequency used for sampling is always the same and I pass a waveform to the filter configurator. So why do I obtain thin warning and how i can solve it?

The work around is to use directly the filter whitout configuring it with the Filter Express VI

 

Thank you for the help!

 

Best Regards,

Zuc

Download All
0 Kudos
Message 5 of 5
(1,138 Views)