필터 지우기
필터 지우기

How to simulate thermal noise altering a signal at various sample rates?

조회 수: 10 (최근 30일)
user123
user123 2023년 9월 30일
답변: Shivam Lahoti 2023년 10월 27일
Tried a few methods.
It is is not possible to set the sample rate in the ADC block from Simulink, so instead of the wave form generator block, a discretized sine wave is generated using the sine wave block of the DSP signal toolbox. It is clear how to set the sample rate of this sine wave in code using the SampleRate property, but not sure how to do it via the dialog box after clicking on the block. There is a "sample time" option.
The thermal noise block from the comminications toolbox does not allow to set a sample rate via the GUI. Via GUI and code both it cannot be connected to the sine wave function or block from the DSP signal toolbox.
The error is:
"Error using comm.internal.AWGNChannelBase/validateInputsImpl
Expected signal input to be one of these types:
double, single, embedded.fi"
A simulation is required for the below or equivalent:
An analog signal source => thermal noise source => anti-aliasing filter => ADC with adjustable sample rate =>output to display/further processing
  댓글 수: 2
recent works
recent works 2023년 9월 30일
It seems like you are facing issues with configuring the sample rate for certain blocks in Simulink and connecting blocks from different toolboxes due to compatibility issues. Can I suggest some general steps may useful
user123
user123 2023년 10월 1일
편집: user123 2023년 10월 1일
@recent works Yes, that could help.

댓글을 달려면 로그인하십시오.

답변 (1개)

Shivam Lahoti
Shivam Lahoti 2023년 10월 27일
Hi user123,
As per my understanding, you want to run a simulation where the workflow involves various analog and digital blocks. In the workflow, you want to simulate thermal noise and for that, you used the receiver thermal noise block from the communication toolbox and encountered an error.
The error might arise from a compatibility issue between blocks from different toolboxes. In your case, the error message suggests that the thermal noise block expects a signal input of type double, single, or embedded.fi.
Along with this, I found another way to design thermal noise. Have a look at the following documentation.
Have a look at the example section to understand how you can generate the thermal noise at a particular sample rate. Or else run the following code to refer to the example.
openExample('comm/AddThermalNoiseToQPSKSignalExample')
I hope this helps.
Regards,
Shivam Lahoti.

카테고리

Help CenterFile Exchange에서 Get Started with DSP System Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by