Borrar filtros
Borrar filtros

I am trying to use the spectrum analyzer in Simulink to study a distorted signal. However, every time i change the discretization time of the powergui block, it gives me different (a huge difference) results. So how do I choose the sampling time?

13 visualizaciones (últimos 30 días)
For instance, when my sampling time is 20us, the spectrum analyzer says that the fundamental frequency is at 65 Hz. When i set the sampling time to 2us, the fundamental goes up to 200KHz, keeping in mind that my sources operate at a frequency of 50 Hz.

Respuesta aceptada

Prashant Arora
Prashant Arora el 18 de Jul. de 2017
Hi Danny,
The sampling time for spectrum analysis should ideally be same as the sampling time of the actual signal to be analyzed.
  2 comentarios
Danny Wehby
Danny Wehby el 19 de Jul. de 2017
But the sample rate of the spectrum setting is set to inherited, so I suppose it is the same as that of the actual signal. My issue is that results are changing drastically every time i change the sampling time of the whole system. So is there a certain nominal value I can stick to that is neither too small (huge simulation time) nor too big (less accuracy)?
Prashant Arora
Prashant Arora el 19 de Jul. de 2017
Sampling time of a signal will affect the frequency analysis of the system, not just in terms of simulation time or accuracy, but due to effects like Aliasing, random noise etc. You can start with Nyquist limit and decrease the sampling time as required.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Spectral Measurements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by