필터 지우기
필터 지우기

real time audio processing and algebraic loop issues

조회 수: 2 (최근 30일)
mdb
mdb 2015년 11월 16일
댓글: mdb 2015년 11월 19일
Hi all, I'd like to emulate a "microphone channel" so in the model I attached there is an input from wav file (sampled at 48kHz), an amplifier, a sigma delta modulator (working at 3.6MHz so the OSR ratio is 75). If I try to simulate the model it works (meaning that simulation runs), but as soon as I connect at the output of the decimation filter a scope, a "save to wav file" block or whatever I get errors due to algebraic loop. I don't understand where this error is coming from and why it appears only if I connect something to the output. This problem make impossible to verifiy if the model is working fine and the audio at the ouput is the correct conversion of the input one and if the model is able to simulate audio file in real time. Thanks in advance for any help

답변 (1개)

Puneet Rana
Puneet Rana 2015년 11월 16일
The algebraic loop is in SD2 subsystem. This will help you identify it: http://www.mathworks.com/help/simulink/ug/algebraic-loops.html#bsjdi74-1
Simulink by default will optimize out the unused blocks from Simulation. In this model, the subsystem SD2 has no sink block connected to its output, so it will be removed from simulation. When you connect a scope to its output, this subsystem cannot be removed and so the algebraic loop is reported. The sink block does not cause the algebraic loop - it only helped you see it.
If you turn off Block reduction from configuration parameters pane (see: http://www.mathworks.com/help/simulink/gui/optimization-pane-general.html#bq7cqwp-1), you will get the same error even with scopes commented out.
  댓글 수: 1
mdb
mdb 2015년 11월 19일
thanks for your reply, I got the point about the block reduction. I still can not solve the loop issues, every loop in SD2 has a delay and the initial condition is defined so I don't understand why the solver is not able to solve the system. Any suggestion is more than welcome

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

카테고리

Help CenterFile Exchange에서 Audio Processing Algorithm Design에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by