LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Peak detect error

Hey guys.

 

I have a problem with my peak detect on a Power spectrum signal. from http://www.ni.com/white-paper/4278/en/ I know that 

 

 

I would like to have f = 1 meaning that the frequency at which the acquired time-domain signal was sampled (Fs) has to be equal to the number of points in the acquired time-domain signal (N). 

When i try to do this the peak detect returns the error 20013 the width must be greater than zero and smaller than sample rate.

 

this makes no sens to me ? 

 

When i have Fs = N x 10 it runs. 

 

I have added the VI that i have problems with ! if you need the whole project I will gladly add that to.

0 Kudos
Message 1 of 4
(2,994 Views)

Hi Genex,

 

instead of that huge VI you should attach a smaller one, that demonstrates the problem! Right now we would need your DAQ setup to generate a signal to be able to try that VI...

 

So please:

Generate some typical waveforms, make them default in a waveform control and attach a VI with those waveforms and a typical call (with all your parameters) of PeakDetector!

Best regards,
GerdW


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

I would love to do that but I havn't been able to get the error with a simulated signal ! 😕 

Here is one of the small VI i have tried. this is how i would like my VI to run.

 

 

 

0 Kudos
Message 3 of 4
(2,968 Views)

Solved Smiley Happy I needed to delay my peak detect. I think its becouse the Queue is empty when i start.

 

This is what i did.

 

NI help.PNG

0 Kudos
Message 4 of 4
(2,964 Views)