How to find variables solver assigned to simulink

조회 수: 1 (최근 30일)
mona aljeagdaf
mona aljeagdaf 2018년 10월 7일
댓글: mona aljeagdaf 2018년 10월 10일
I have a problem choosing the type of solver in Simulink. Whenever I want to run the model does not work and ask me to change the type and variables of solver or ode and I have other frequently without reaching the solution please help

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2018년 10월 10일
In your Simulink model, click menu "Simulation", "Model Configuration Parameters"
Select "Solver" on the left panel, on the right, under "Solver options"
Choose "Variable-step" for "Type", try "auto (Automatic solver selection)" for "Solver".
This is probably what you need. Or you can try different selections available to you in the list of "Solver"
  댓글 수: 4
Fangjun Jiang
Fangjun Jiang 2018년 10월 10일
so choose a different solver, and try to reduce the maximum step size. What is the error message?
mona aljeagdaf
mona aljeagdaf 2018년 10월 10일
Warning: Block diagram 'robot_arm222' contains 1 algebraic loop(s). To see more details about the loops use the command line Simulink debugger by typing "sldebug robot_arm222" in the MATLAB command window. To eliminate this message, set the Algebraic loop option in the Diagnostics page of the Simulation Parameters Dialog to "None" > In robot_arm22222222 at 58 Found algebraic loop containing: 'robot_arm222/robot_arm_Subsystem/Gain' 'robot_arm222/robot_arm_Subsystem/Saturation1' (discontinuity) 'robot_arm222/robot_arm_Subsystem/Fuzzy Logic Controller with Ruleviewer/Fuzzy Logic Controller/FIS S-function' 'robot_arm222/robot_arm_Subsystem/Gain3' 'robot_arm222/robot_arm_Subsystem/Saturation' (discontinuity) 'robot_arm222/robot_arm_Subsystem/Ground/_mech_engine/Block#1' 'robot_arm222/robot_arm_Subsystem/Joint Sensor_1/gain_1' 'robot_arm222/robot_arm_Subsystem/Sum' (algebraic variable) Warning: Discontinuities detected within algebraic loop(s), may have trouble solving > In robot_arm22222222 at 58 Error using robot_arm22222222 (line 58) Unable to reduce the step size without violating a minimum step size of 1.0E-25 at time 0.00375351289001624 for model 'robot_arm222'

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Configure Simulation Conditions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by