Request for help with Simulink DC Circuit Simulation: No Output on Scopes Despite Correct Setup
Show older comments
Hallo MATLAB Community,
I am a beginner learnier of Matlab and Simulink. I am trying to simulate a simple cricuit consist of a Resistor and DC voltage source and sesor tomeasure current and voltage. I’m encountering an issue with my Simulink model where I’ve set up a simple DC circuit simulation, but I’m not seeing any output on the scopes despite making several adjustments. Here’s a detailed breakdown of the steps I’ve taken so far and the problems I’ve faced:
Initial Setup:
- Circuit: I have a DC voltage source (5V) connected to two resistors (each 3Ω) in series. I am using a Current Sensor and Voltage Sensors to measure the current and voltage in the circuit. The sensors are connected to Scopes for visualization.
- Simulink Blocks:
- DC Voltage Source (5V)
- Two Resistors (3Ω each)
- Current Sensor and Voltage Sensor
- PS-Simulink Converters (to connect sensors to scopes)
- Scopes to visualize current and voltage
Changes and Issues Faced:
- Initial Problem: No Signal on ScopesI initially set up the circuit but saw no signal output on any of the Scopes. I added PS-Simulink Converters to ensure the signals were converted properly, but the issue persisted.
- Solver Configuration Error:After adding the converters, I encountered an error regarding missing solver configuration. The error message was:“Each physical network must be connected to exactly one Solver Configuration block.”I added the Solver Configuration block, which resolved this error.
- Missing Electrical Reference Error:The next error I encountered was:“Initial conditions solve failed to converge. Nonlinear solver: Linear Algebra error. Failed to solve using iteration matrix. Tie variable 'Voltage_Sensor.p.v' (Voltage) to a definite value, for example by connecting an appropriate domain reference block.”To fix this, I added an Electrical Reference block to the circuit, which removed the error.
- Final Issue: No Output on ScopesAfter making the above adjustments, I re-ran the simulation but the Scopes are still not showing any output, despite all settings appearing correct. I tried autoscaling the Scope and adjusting the solver (set to auto) but no changes were seen on the output. I also checked the connections, voltage source (5V), and resistors (3Ω each), which are correct.
Request for Help:
I would greatly appreciate any guidance or suggestions on what could be going wrong. Despite following standard steps and resolving the errors, I am still unable to see any current or voltage outputs on the Scopes.
I am attaching the relevant Simulink files for further review. Thank you in advance for your help!
Best regards,
Avi
Accepted Answer
More Answers (0)
Categories
Find more on Converters (High Power) 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!