Can't connect branch with block in simulink
12 views (last 30 days)
Show older comments
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 Comments
Vinay
on 13 Aug 2024
Hii Chandrakanta ,
Could you please share your Simulink model or a screenshot of the model?
Answers (3)
Vinay
on 13 Aug 2024
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
on 13 Aug 2024
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 Comments
nick
on 13 Aug 2024
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 Comments
See Also
Categories
Find more on Electrical Block Libraries in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!