Hi. when i am trying to Controlling Robot Motion in Simulink, getting following error. please suggest about it. thank you.
조회 수: 31 (최근 30일)
이전 댓글 표시
sridhar reddy
2019년 8월 6일
댓글: Adedotun Owojori
2021년 11월 4일
Error in S-function 'MobileRobotSimulink1/Robot Simulator/Soft Real Time': S-Function 'sfun_time' does not exist
Component:Simulink | Category:Block error
댓글 수: 3
Adedotun Owojori
2021년 11월 4일
It seems I am getting the same error, we look forward to your explanation in getting the system work
Thanks
Dotun
Adedotun Owojori
2021년 11월 4일
Please i am still getting this error after deleting the soft realtime block
- The "FixedStepDiscrete" solver cannot be used to simulate block diagram 'untitledfcn' because it contains continuous states
Component:Simulink | Category:Block diagram error
and also after converting to a variable solver, i got this error
- Error in 'untitledfcn/Robot Simulator': Initialization commands cannot be evaluated.
Caused by:
- Changing property 'SolverType' is not allowed
Component:Simulink | Category:Block error
kindly assist, thanks
Dotun
채택된 답변
MathWorks Student Competitions Team
2019년 11월 12일
편집: MathWorks Student Competitions Team
2019년 11월 12일
This error usually occurs when you don't run the file "installMRTToolbox" included in the training files. This should be on the main directory for the submission here:
You will need a compiler to compile the s-funciton for the block and then everything should work. This is prompted when the install file is executed.
Alternatively, if you are using MATLAB R2018a or newer you can delete the block form the library and use Simulation pacing instead. To do this:
- Right-click the Robot Simulator and select Library Link>Go to library block
- Unlock the library by clicking the lock on the bottom left corner
- Right-click the Robot Simulator block in the library and select Mask>Look under mask
- Delete the "Soft Real Time" block
- Save the library
You can enable Simulation Pacing from the run button. This will slow down the simulation to real-time speed.
Find here more details on simulation pacing:
댓글 수: 6
Jose Avendano Arbelaez
2021년 2월 26일
Adentro de el bloque "Robot Simulator". Para que la solucion sea permanente, debes editar la libreria donde se encuentra el bloque. Se puede abrir la libreria con este comando:
>>open_system('mobileRoboticsTrainingLib')
Adedotun Owojori
2021년 11월 4일
Please i am still getting this error after deleting the soft realtime block
- The "FixedStepDiscrete" solver cannot be used to simulate block diagram 'untitledfcn' because it contains continuous states
Component:Simulink | Category:Block diagram error
and also after converting to a variable solver, i got this error
- Error in 'untitledfcn/Robot Simulator': Initialization commands cannot be evaluated.
Caused by:
- Changing property 'SolverType' is not allowed
Component:Simulink | Category:Block error
kindly assist, thanks
Dotun
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Block Libraries에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!