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: 

The df of power spectrum differs between start program and after a change

Hello everybody,

 

In the program i made to calcultate the power spectrum of a signal, and to present this in a graph, i encounterd some behaviour i cannot explain.

So i was hoping that someone here can help me.

 

The behaviour is this:

 

When i start the program -> and select "Kanaal 1 aan"  the calculation is started ik can see data going in and out.

For testing i setup a 200 Hz test signal.

 

However the graph i "default" set it up : from 100 to a 1000 Hz stays empty.

When i choose X scale to AUTO it shows me a scale from 0 to 0,5 Hz. and a peak at 0,2 Hz

 

Which is weird because my test signal is 200 Hz

 

I also created a option to see the complete spectrum, 1 to 22000 Hz

When i press that button, is see the graph appeare, and when i switch back to the default (100 to 1000) the graph also is correct(with the peak at 200 Hz)

 

After a day or two puzzling is saw that the "df" of the powerspectrum Vi is 0,01 and after the button pressing is 10(so 1000 times bigger)

Which explains the different position of the peek (0,2 -> 200)

 

The question is how could this be explained, and how can i solve this?

 

 

Download All
0 Kudos
Message 1 of 2
(2,302 Views)
0 Kudos
Message 2 of 2
(2,272 Views)