Simple circuit using Simulink

I would like to implement simple circuits that I am studying during the electrical engineering (mechanical engineering) course. Can anyone tell me how the following circuit should be drawn in simulink? (R2020a)
or

 Accepted Answer

Sriram Tadavarty
Sriram Tadavarty on 30 Jul 2020
Hi Luca,
You can draw this in Simulink, if you hace access to Simscape Electical.
There are quite a good number of examples and blocks in this and can be used to perform the task.
For the circuits placed, you can use Resistor, Current source and Voltage source.
Hope this helps.
Regards,
Sriram

8 Comments

Luca
Luca on 30 Jul 2020
Edited: Luca on 30 Jul 2020
This is true in general, but I don't find such simple circuits. In theory, connecting the dipoles would not be difficult, but, as in the attached example, I cannot connect a voltage meter.
The connectors have square or circular terminals, what is the difference?
I apologize for my ignorance.
Sriram Tadavarty
Sriram Tadavarty on 9 Aug 2020
Edited: Sriram Tadavarty on 10 Aug 2020
Hi Luca,
Sorry for the late reply. Here is what i had.
The blocks to be used are from the same type. In the above figure, one element is of type General Electric Sources and the other elements are of type Specicalized Power Systems. This difference in type led to the issue in the connection.
The Simscape signals are not the physical signals and to convert them to Simulink Signals, use the PS Simulink converter. To convert Simulink to physical signals, use Simulink PS converter.
For measurement, as in the above diagrams, use the sensor blocks present here.
Attached here a sample circuit with the voltage measurement. For a similar examples, look over these.
Hope this helps.
Regards,
Sriram
The Simscape signals are the physical signals and to convert them to Simulink Signals,
Don't worry, in fact, thanks for the answer. But what is the difference between physical signal and simulink signal?
Sriram Tadavarty
Sriram Tadavarty on 10 Aug 2020
Edited: Sriram Tadavarty on 10 Aug 2020
The Simscape signals are not the physical signals.
The error you get is due to the solver configuration not provided. In the sample example, I have connected a solver f(x) = 0. That will solve the conditions and provide the output. Please add a solver to the circuit and the simulation would work.
Hope this helps. Regards, Sriram
Sriram Tadavarty
Sriram Tadavarty on 10 Aug 2020
Edited: Sriram Tadavarty on 10 Aug 2020
Here are the answers for the differences between Simscape physical signals and Simulink signals. Please find the link .
Thanks.
Good work Luca!
If the answer was helpful, feel free to accept it.
Regards,
Sriram

Sign in to comment.

More Answers (0)

Products

Release

R2020a

Community Treasure Hunt

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

Start Hunting!