real time audio processing and algebraic loop issues
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposte (1)
Puneet Rana
il 16 Nov 2015
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.
Vedere anche
Categorie
Scopri di più su Audio Processing Algorithm Design in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!