Can't connect branch with block in simulink

15 visualizaciones (últimos 30 días)
Chandrakanta
Chandrakanta el 13 de Ag. de 2024
Comentada: Chandrakanta el 13 de Ag. de 2024
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 comentarios
Vinay
Vinay el 13 de Ag. de 2024
Hii Chandrakanta ,
Could you please share your Simulink model or a screenshot of the model?
Chandrakanta
Chandrakanta el 13 de Ag. de 2024
Yes... The screen shot is attached

Iniciar sesión para comentar.

Respuestas (3)

Vinay
Vinay el 13 de Ag. de 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
Walter Roberson el 13 de Ag. de 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.

nick
nick el 13 de Ag. de 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.

Categorías

Más información sobre Electrical Block Libraries en Help Center y File Exchange.

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by