Can't connect branch with block in simulink

43 次查看(过去 30 天)
Hello. I made a circuit for superposition theorem in simulink with dc voltage source and the measured current is connected to the scope as an output so i can see the value.My next task is to simulate the work of this circuit. When i try to drag & connect the branch with the input of the current measurement block then it is showing 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!
  2 个评论
Vinay
Vinay 2024-8-13,3:03
Hii Chandrakanta ,
Could you please share your Simulink model or a screenshot of the model?

请先登录,再进行评论。

回答(3 个)

Vinay
Vinay 2024-8-13,4:47
Hii Chandrakanta,
The "Current Measurement block" is from the "Simscape" library, while the "Resistor" and other electrical components are from the "Simulink" library, which is causing connectivity issues. To resolve this, you can use all the components from the "Simscape" library to model the circuit. Below is the circuit design flow:
1. Use a DC voltage source from the Simscape -> Electrical -> Specialized Power Systems -> Sources.
2. Use a Series RLC Branch and configure it to model the resistor (R), inductor (L), capacitor (C), or any desired combination.
3. Use the Current Measurement block from the "Simscape" library.
This approach ensures compatibility and proper connectivity in the Simulink model.
Kindly refer to the following documentations for "Current measurement" and "Series RLC branch" blocks
I hope this helps!

Walter Roberson
Walter Roberson 2024-8-13,4:57
The Current Measurement block https://www.mathworks.com/help/sps/powersys/ref/currentmeasurement.html is from Simulink Electrical Specialized Power Systems. It operates on a different physical domain than the rest of your circuit, which appears to be pure Simulink.

Neelanshu
Neelanshu 2024-8-13,5:14
Hello Chandrakanta,
The issue occurs because the block to measure the current in the circuit built is not from the Simscape Electrical library but from the Specialized Power Systems library. You need to use the 'Current Sensor' block from the Simscape Electrical Library to measure the current in the circuit.
You can use the 'PS-Simulink Converter' block to view the output in the 'Scope' block. The block is used to connect outputs of a Simscape physical network to Simulink scopes or other Simulink blocks.
You may refer to the following documentation to learn more about 'PS-Simulink' block and 'CurrentSensor' block :
I have attached the .SLX file of the model by replacing the block for your reference.

类别

Help CenterFile Exchange 中查找有关 Electrical Block Libraries 的更多信息

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by