how to simulate communication channel in control toolbox
8 次查看(过去 30 天)
显示 更早的评论
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
2 个评论
Paul
2024-5-11
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?
回答(1 个)
Swastik Sarkar
2024-8-1
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:
If you prefer to keep the algebraic loop, you can resolve the issue by explicitly specifying the signal dimensions using a "Signal Specification" block. In this case, you can set the dimensions to [1 1].
I hope this solution helps.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 QAM 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!