Can't connect blocks in simulink
192 次查看(过去 30 天)
显示 更早的评论
Hello.
I made an RC, RL, CR, LR and couple of RLC circuits in simulink with ac voltage source which by default generates a sinusoidal wave as an input and they are connected to the scope as an output so i can see the behaviour of the signal. My next task is to simulate the work of these filters by having a different signal shape like sawtooth or square wave. When i try to drag&drop some sawtooth or square wave generator and connect it with the rest of the circuit i get red dashed line which means that i cannot connect it to my circuit.
Please someone help me solve this problem, it is a bit urgent.
Thank you!
0 个评论
采纳的回答
更多回答(1 个)
Walter Roberson
2019-9-15
The AC source you have used is https://www.mathworks.com/help/physmod/sps/powersys/ref/acvoltagesource.html from Simscape Electrical, Specialized Power Source. Simscape Electrical is layered on top of Simscape.
The Signal Generator you show highlighted is Simulink.
Simscape Specialized Power Source is, if I recall correctly, considered a different Domain than Simscape Electrical. But either way, even if it is not, Simscape is certainly considered a different Domain than Simulink. Different Domains cannot be connected except through conversion blocks.
The signal generator you should use instead is https://www.mathworks.com/help/physmod/sps/powersys/ref/sawtoothgenerator.html (sawtooth) or https://www.mathworks.com/help/physmod/sps/powersys/ref/stairgenerator.html (stairs, could be used for square)
7 个评论
T MURALI KRISHNA
2021-4-12
unable to conncect current sensor to inductor branch
please help me in this regard
Walter Roberson
2021-4-12
编辑:Walter Roberson
2021-4-12
you are trying to use the Simscape Electrical Specialized Power Systems sensor https://www.mathworks.com/help/physmod/simscape/ref/currentsensor.html
I have having difficulty finding some of the blocks that you use in the rest. One of the items looks like it might be Linear Inductor, which is from Simscape basic library, which is a different domain than SPS.
https://www.mathworks.com/help/physmod/simscape/ref/inductor.html
To advise you about proper sensor I will need more information about exactly which blocks you using.
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!