how to simulate communication channel in control toolbox
27 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Is there a way to simulate a communication channel in a simulink like the one shown below, using some block like the BSC or the AWGN channel, in order to simulate an error produced directly by the communication channel being used. I need it to be an element that can be easily incorporated, since it is to perform simulation activities in a classroom.
Thanks
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1692326/image.png)
2 Kommentare
Paul
am 11 Mai 2024
Hi Juan,
Can you be more specific? What precisely do you want to change in that Simulink model? Perhaps you're looking for a different source to replace the Step or Pulse Generator blocks?
Antworten (1)
Swastik
am 1 Aug. 2024 um 9:26
I recreated the model based on the image you provided in the comments, and I faced the same issue:
I also faced the error while simulating this model, to be specific, the error I faced was:
Error: Unable to determine signal dimensions. There is a loop consisting of 'model/PID Controller/Sum/Sum_PID/Sum' that cannot be resolved because signal dimensions are defined by a cyclic relationship. Specifying the signal dimensions on Inport, Mux, Selector, Demuxes will help resolve signal dimensions in the loop. You can also use the Signal Specifications to define the signal dimensions.
I believe that you are facing the same error. The error you encountered is common when dealing with algebraic loops in Simulink models, particularly when signal dimensions cannot be determined due to cyclic relationships.
One approach to resolve this issue is to remove the algebraic loop and introduce an additional source. This modification allows the simulation to proceed without errors:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1744776/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1744781/image.png)
I hope this solution helps.
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!