Trying to create an electrical circuit

11 views (last 30 days)
Weijie Yin
Weijie Yin on 9 Oct 2011
Moved: Walter Roberson on 10 Dec 2023
Hi guys, I am trying to draw a circuit like the one in the picture link. http://img513.imageshack.us/img513/1501/circuita.jpg
I drew up a circuit using simscape and simulink. And it is as follows. http://img28.imageshack.us/img28/8900/circuit2.jpg
However, the error keeps popping up: Nonlinear solver: Linear Algebra error. Failed to solve using iteration matrix. Initial conditions solve failed to converge. Dependency found among topology equations. Check for missing reference node.
I just started using matlab, and would really appreciate any help for this. Thanks in advance.

Answers (1)

Guy Rouleau
Guy Rouleau on 10 Oct 2011
The error is clear... "Check for missing reference node" means that your circuit does not have a reference. Add this block to ground your circuit:
  2 Comments
Andres RM
Andres RM on 8 Nov 2011
Moved: Walter Roberson on 10 Dec 2023
I haven't asked this question but, THANK YOU VERY MUCH. You've just saved my life!
How dificult starting with Simulink is!

Sign in to comment.

Categories

Find more on Variable Initialization 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!