Possible failure in course Simscape Onramp
Show older comments
Good afternoon, I have not been able to finish the Simscape Onramp course since the system requires the fulfillment of a requirement in task 9 of numeral 8.1 Project - Electronic Valve: (2/2) Practice, I do not know how it is solved, I request help in this regard. Attached image.
1 Comment
Saharsh Patil
on 29 Dec 2022
Did you find the solution to it. I made the model thrice and still the same problem
shows following error:
['SimscapeOnramp/Solver Configuration1']: Initial conditions solve failed to converge.
Caused by:
The model may not give enough information to make it possible to solve for values of some of its variables. Specific advice is given below.
Variable 'Controlled_Voltage_Source.i' (i) does not occur in any equation. This may be a result of incorrect component connections, or incorrect equation formulation within a component.
Equations of one or more components may be dependent or inconsistent. This can cause problems in transient initialization. Here is the set of components involved:
all components involved
'SimscapeOnramp/Controlled Voltage Source'
Equation locations are:
'/MATLAB/toolbox/physmod/simscape/library/m/+foundation/+electrical/+sources/controlled_voltage.ssc' (line 29)
'/MATLAB/toolbox/physmod/simscape/library/m/+foundation/+electrical/+sources/controlled_voltage.ssc' (line 30)
Answers (2)
Cris LaPierre
on 8 Jul 2021
0 votes
Note that to the left of the Submit button, there are links to see a Hint as well as the Solution.
In your case, it looks like you forgot to change the signs of your Sum block to |+-. Right now both ports are +.
1 Comment
Henry Molina Gómez
on 8 Jul 2021
Emily Settle
on 25 Aug 2022
0 votes
Good afternoon,
I am having a similar problem to above, though the hint/solution don't provide the help I need. My Sum block is already changed to |+- but I still cant successfully submit?
Thanks,
Emily
12 Comments
Cris LaPierre
on 25 Aug 2022
Try switching the R and C connections in your Ideal Rotational Motion Sensor so that R connects to the Inertial block and C connects to the Mechanical Rotational Reference block.
Emily Settle
on 26 Aug 2022
Thank you, I have tried that but I still have the same outcome:
'X Does the following block value match the plotted requirement?
Inertia: w'
Do you have any other suggestions please?
Cris LaPierre
on 26 Aug 2022
Try clicking the Reset hyperlink to the left of the Submit button, and then recreate the feedback loop following the instructions in Task 9.
Saharsh Patil
on 29 Dec 2022
Edited: Saharsh Patil
on 29 Dec 2022
Doesnt work. I made the model thrice still the same problem
shows following error:
['SimscapeOnramp/Solver Configuration1']: Initial conditions solve failed to converge.
Caused by:
The model may not give enough information to make it possible to solve for values of some of its variables. Specific advice is given below.
Variable 'Controlled_Voltage_Source.i' (i) does not occur in any equation. This may be a result of incorrect component connections, or incorrect equation formulation within a component.
Equations of one or more components may be dependent or inconsistent. This can cause problems in transient initialization. Here is the set of components involved:
all components involved
'SimscapeOnramp/Controlled Voltage Source'
Equation locations are:
'/MATLAB/toolbox/physmod/simscape/library/m/+foundation/+electrical/+sources/controlled_voltage.ssc' (line 29)
'/MATLAB/toolbox/physmod/simscape/library/m/+foundation/+electrical/+sources/controlled_voltage.ssc' (line 30)
Milan
on 13 Nov 2023
Same here, I re-built the model a few times trying various suggestions, still the same error.
Anone with a suggestion ?
Thank you !
Cris LaPierre
on 13 Nov 2023
Everything appears to be connected correctly. It is the calculation of W that is off. Try clicking on the Inspect signal in figure window link and share that here.
Since you have rebuilt your model, confirm the following settings
Local Restriction (IL)
- Min restriction area 0.05

- Max restricction area = 1

Discrete PID Controller
- Sample time = 0.05
- Proportional = 1e-6
- Integral = 5e-3
Milan
on 14 Nov 2023
Hi Chris, thank you for your response !
I attached screenshots the figure window and my PI settings.
Cris LaPierre
on 14 Nov 2023
What release version of Simscape are you using?
Could you also share a screenshot of your local restriction parameters?
Milan
on 14 Nov 2023
Hi Chris, I'm using Simscape 5.2.
LR parameters attached.
THANK YOU !
Cris LaPierre
on 15 Nov 2023
Edited: Cris LaPierre
on 15 Nov 2023
When you ran the ver command, what was the first line? For example, mine says this
- MATLAB Version: 9.11.0.2358333 (R2021b) Update 7
You may need to update your existing installation. In the upper right corner of MATLAB, there is a notification bell. Click on that and see if there is an update to install (see instructions here: https://www.mathworks.com/help/matlab/matlab_env/check-for-software-updates.html). As you can see from my version, there are at least 7 updates available for R2021b.
Milan
on 15 Nov 2023
Hi Chris, my version is: MATLAB Version: 9.11.0.1769968 (R2021b)
I'm all upto date except the last one #7, which our system did not let me update:
R2021b Update 7: Bugs fixed in this update August 29, 2023
Cris LaPierre
on 15 Nov 2023
Ok, I can duplicate the issue with that version of MATLAB.
Your version number would suggest that none of the updates have been installed. These tend to be all-inclusive, so installing update 7 will install updates 1-6 as well. You will need to update in order to fix the problem. Did you get an error when trying to install the update?
Another option might be to reinstall MATLAB. The current installer for R2021b is update 7.
Categories
Find more on Foundation and Custom Domains 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!