Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Simulink spectrum scope samping?

Subject: Simulink spectrum scope samping?

From: matt reister

Date: 28 Aug, 2010 12:01:07

Message: 1 of 3

When i attempt to use the spectrum scope in simulink i get the error " All sample times for this block must be discrete.
Continuous sample time is not allowed."

Now I know i can resolve this by having my input to the spectrum scope be discrete but then i would have to change the my model quite a bit. Is there a simulink block that will model an adc so i dont have to change my input to discrete? Or is there a way i can use the spectrum scope with "continuous" sample times?

I looked into the spectrum analizer block but it doesn't seem to work properly it only give my the time domain input but the frequency spectrum is completely zero and the documentation on that block is lacking.

Any suggestions?

Subject: Simulink spectrum scope samping?

From: Navan Ruthramoorthy

Date: 31 Aug, 2010 15:51:04

Message: 2 of 3

Hi,

You can try using the "Zero-Order Hold" block in Simulink. You might need to check the "Buffer input" option in the scope if your input is not a frame.

Navan

"matt reister" <mattreister@hotmail.com> wrote in message <i5atq3$796$1@fred.mathworks.com>...
> When i attempt to use the spectrum scope in simulink i get the error " All sample times for this block must be discrete.
> Continuous sample time is not allowed."
>
> Now I know i can resolve this by having my input to the spectrum scope be discrete but then i would have to change the my model quite a bit. Is there a simulink block that will model an adc so i dont have to change my input to discrete? Or is there a way i can use the spectrum scope with "continuous" sample times?
>
> I looked into the spectrum analizer block but it doesn't seem to work properly it only give my the time domain input but the frequency spectrum is completely zero and the documentation on that block is lacking.
>
> Any suggestions?

Subject: Simulink spectrum scope samping?

From: pathaksinjan@gmail.com

Date: 2 Nov, 2013 22:14:08

Message: 3 of 3

On Saturday, August 28, 2010 5:31:07 PM UTC+5:30, matt reister wrote:
> When i attempt to use the spectrum scope in simulink i get the error " All sample times for this block must be discrete.
> Continuous sample time is not allowed."
>
> Now I know i can resolve this by having my input to the spectrum scope be discrete but then i would have to change the my model quite a bit. Is there a simulink block that will model an adc so i dont have to change my input to discrete? Or is there a way i can use the spectrum scope with "continuous" sample times?
>
> I looked into the spectrum analizer block but it doesn't seem to work properly it only give my the time domain input but the frequency spectrum is completely zero and the documentation on that block is lacking.
>
> Any suggestions?

Matt, can you just guide me on how to have my input to the spectrum scope as a discrete one? thanks in advance

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us