Can't connect branch with block in simulink
조회 수: 12 (최근 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
2024년 8월 13일
Hii Chandrakanta ,
Could you please share your Simulink model or a screenshot of the model?
답변 (3개)
Vinay
2024년 8월 13일
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
2024년 8월 13일
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.
댓글 수: 0
nick
2024년 8월 13일
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Electrical Block Libraries에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!